logo

CVE-2022-2596 node-fetch

Package

Manager: npm
Name: node-fetch
Vulnerable Version: >=3.0.0 <3.2.10

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00275 pctl0.50599

Details

node-fetch Inefficient Regular Expression Complexity [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'`.

Metadata

Created: 2022-08-02T00:00:25Z
Modified: 2022-08-04T17:37:24Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-vp56-6g26-6827/GHSA-vp56-6g26-6827.json
CWE IDs: ["CWE-1333", "CWE-400"]
Alternative ID: GHSA-vp56-6g26-6827
Finding: F211
Auto approve: 1