CVE-2022-2596
Inefficient Regular Expression Complexity in node-fetch/node-fetch
Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.9
Inefficient Regular Expression Complexity in node-fetch/node-fetch
Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.
- Record
CVE-2022-2596- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
EUVDEUVD-2022-6634
5.9
Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.
- Record
EUVD-2022-6634- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vp56-6g26-6827
5.9
node-fetch Inefficient Regular Expression Complexity
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'.
- Record
GHSA-vp56-6g26-6827- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-1333
- Updated
- 2026-11-02
NVD
5.9
Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.
- Record
CVE-2022-2596- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSV
5.9
Inefficient Regular Expression Complexity in node-fetch/node-fetch
Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.
- Record
CVE-2022-2596- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVGHSA-vp56-6g26-6827
5.9
node-fetch Inefficient Regular Expression Complexity
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'.
- Record
GHSA-vp56-6g26-6827- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333, CWE-400
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-2596
5.9
Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.
- Record
UBUNTU-CVE-2022-2596- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
node-fetchnpm |
3.0.0 up to 3.2.10 | 3.2.10 |
node-fetchUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 1.7.3-11.7.3-1ubuntu0.1~esm1 |
None known |
node-fetchUbuntu:20.04:LTS |
All versions, plus listed versions 1.7.3-11.7.3-21.7.3-2ubuntu0.1 |
None known |
node-fetchUbuntu:22.04:LTS |
All versions, plus listed versions 2.6.1-52.6.1-62.6.1-72.6.7+~2.5.12-1 |
None known |
node-fetchUbuntu:24.04:LTS |
All versions, plus listed versions 3.3.0+~cs11.4.11-23.3.2+~cs11.4.11-1 |
None known |
node-fetchUbuntu:25.10 |
All versions, plus listed versions 3.3.2+~cs11.4.11-3 |
None known |
node-fetchUbuntu:26.10 |
All versions, plus listed versions 3.3.2+~cs11.4.11-3 |
None known |
node-fetchUbuntu:26.04:LTS |
All versions, plus listed versions 3.3.2+~cs11.4.11-3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-2596 is a medium vulnerability (CVSS 5.9) in Node-fetch Node-fetch/node-fetch, published August 1, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.34%, the 71st percentile. Fixed in node-fetch 3.2.10.
References
huntr.dev/bounties/a7e6a136-0a4b-46c4-ad20-802f1dd60bf7
github.com/node-fetch/node-fetch/commit/28802387292baee467e042e168d92597b5bbbe3d
nvd.nist.gov/vuln/detail/CVE-2022-2596
github.com/node-fetch/node-fetch/pull/1611
github.com/node-fetch/node-fetch/releases/tag/v3.2.10
github.com/advisories/GHSA-vp56-6g26-6827