Every CVE Search/ Get API key

CVE-2022-2596

Inefficient Regular Expression Complexity in node-fetch/node-fetch

5.9 MediumFix available

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

1.34%Up 0.5 points since Aug 2, 2022
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
node-fetch
npm
3.0.0 up to 3.2.10
3.2.10
node-fetch
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
1.7.3-11.7.3-1ubuntu0.1~esm1
None known
node-fetch
Ubuntu:20.04:LTS
All versions, plus listed versions
1.7.3-11.7.3-21.7.3-2ubuntu0.1
None known
node-fetch
Ubuntu: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-fetch
Ubuntu:24.04:LTS
All versions, plus listed versions
3.3.0+~cs11.4.11-23.3.2+~cs11.4.11-1
None known
node-fetch
Ubuntu:25.10
All versions, plus listed versions
3.3.2+~cs11.4.11-3
None known
node-fetch
Ubuntu:26.10
All versions, plus listed versions
3.3.2+~cs11.4.11-3
None known
node-fetch
Ubuntu:26.04:LTS
All versions, plus listed versions
3.3.2+~cs11.4.11-3
None known

History

History
RecordedChangedSources
first indexedCVE 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

Show 4 moreShow less
MoveEnter Open