CVE-2022-2596
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability identified as CVE-2022-2596 was discovered in the node-fetch package, affecting versions prior to 3.2.10. The issue is characterized as an Inefficient Regular Expression Complexity vulnerability in the GitHub repository node-fetch/node-fetch (NVD, MITRE).

Technical details

The vulnerability is classified as CWE-1333 (Inefficient Regular Expression Complexity) and received a CVSS v3.1 base score of 5.9 (Medium) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H. The issue specifically relates to the regular expression pattern used for host validation in the referrer checking functionality (GitHub Patch).

Impact

The vulnerability could lead to a Denial of Service condition when processing certain inputs. The high availability impact (A:H) in the CVSS score indicates that the vulnerability could significantly impact system availability (NVD).

Mitigation and workarounds

The vulnerability was fixed in version 3.2.10 of node-fetch. The fix involved replacing the problematic regular expression pattern /^(.+\.)*localhost$/ with a simple string comparison url.host === 'localhost' || url.host.endsWith('.localhost') (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management