Launch Week Day 1: Announcing Security Design Review
MEDIUM 5.9 npm

node-fetch Inefficient Regular Expression Complexity

GHSA-vp56-6g26-6827 · CVE-2022-2596

Published · Modified

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'.

Ready to move

Start Securing

Free, no credit card | First findings in minutes