Advisory

GHSA-vp56-6g26-6827

Also known as: CVE-2022-2596

Summary

node-fetch Inefficient Regular Expression Complexity

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-08-02 00:00 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

node-fetch

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.2.10 (semver)

Fixed versions

3.2.10

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences