CVE-2022-2596
node-fetch Inefficient Regular Expression Complexity
5.9
MEDIUM
CVSS 3.1
EPSS 0.22%
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'`.
How to fix CVE-2022-2596
To remediate CVE-2022-2596, upgrade the affected package to a fixed version below.
- —upgrade to 3.2.10 or later
Is CVE-2022-2596 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- >= 3.0.0, < 3.2.10
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |