GHSA-vp56-6g26-6827

node-fetch Inefficient Regular Expression Complexity

At a glance

Published
Updated
CVE
CVE-2022-2596
CVSS_V3
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Description

[node-fetch](https://www.npmjs.com/package/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'`.

Affected packages

PackageVersions
npm · node-fetchintroduced 3.0.0, fixed 3.2.10

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database