node-fetch Inefficient Regular Expression Complexity
Moderate severity
GitHub Reviewed
Published
Aug 2, 2022
to the GitHub Advisory Database
•
Updated Jul 11, 2023
Description
Published by the National Vulnerability Database
Aug 1, 2022
Published to the GitHub Advisory Database
Aug 2, 2022
Reviewed
Aug 4, 2022
Last updated
Jul 11, 2023
node-fetch is a light-weight module that brings window.fetch to node.js.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the
isOriginPotentiallyTrustworthy()
function inreferrer.js
, when processing a URL string with alternating letters and periods, such as'http://' + 'a.a.'.repeat(i) + 'a'
.References