CVE-2022-0235
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-0235 affects node-fetch, a Node.js module that provides a window.fetch compatible API. The vulnerability was discovered in January 2022 and involves exposure of sensitive information to unauthorized actors when following redirects (NVD, Debian LTS). The affected versions include node-fetch versions up to (excluding) 3.1.1.

Technical details

The vulnerability stems from node-fetch not properly honoring the same-origin policy when handling redirects. When following a redirect to a third-party domain, the module would incorrectly forward sensitive headers such as cookies to the target URL. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability could lead to the exposure of sensitive information like cookies and authentication tokens to unauthorized third-party domains when the application follows redirects. This could potentially allow attackers to capture sensitive user data or session information (Debian LTS).

Mitigation and workarounds

The vulnerability has been fixed in node-fetch version 3.1.1. The fix prevents forwarding of secure headers to third-party domains during redirects. Users should upgrade to version 3.1.1 or later to address this security issue (Node-fetch Commit).

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-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

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