Vulnerabilities/

node-fetch Inefficient Regular Expression Complexity

Severity:
Medium

Description

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 in referrer.js, when processing a URL string with alternating letters and periods, such as 'http://' + 'a.a.'.repeat(i) + 'a'.

Recommendation

Update the node-fetch package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
node-fetch
Anything's wrong? Let us know Last updated on July 11, 2023

This issue is available in SmartScanner Professional

See Pricing