All reports
Medium

node-fetch Inefficient Regular Expression Complexity

Affected versions

Affected versions
>= 3.0.0, < 3.2.10
Fixed version
3.2.10

Exploitation

CVE-2022-2596

Probability of exploitation in the next 30 days: 1.35%

FIRST EPSS · 2026-11-23

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

Links

Credits

  • doublevkay