CVE-2022-1650
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-1650 is a vulnerability discovered in the EventSource NPM package (eventsource/eventsource) prior to version 2.0.2. The vulnerability was identified as an Improper Removal of Sensitive Information Before Storage or Transfer, where the module failed to honor the same-origin policy and would leak sensitive header information during redirects (NVD, Debian LTS).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 9.3 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N. The issue specifically occurs when the EventSource client follows HTTP redirects to a different origin, where it fails to strip sensitive headers such as authorization and cookie information (GitHub Patch).

Impact

When exploited, this vulnerability could lead to the exposure of sensitive information such as authentication tokens and cookies to unauthorized domains. This occurs specifically when the EventSource client follows redirects to different origins, potentially allowing attackers to capture sensitive header information (Debian LTS).

Exploitability

The vulnerability requires network access and user interaction to exploit. An attacker could potentially set up a malicious server that triggers a redirect to capture sensitive header information from the client (NVD).

Mitigation and workarounds

The vulnerability has been fixed in version 2.0.2 of the eventsource package. The fix implements proper stripping of sensitive headers (authorization and cookie) when redirecting to a different origin. Users are recommended to upgrade to version 2.0.2 or later (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-2021-43309HIGH7.5
  • JavaScript logoJavaScript
  • uri-template-lite
NoYesAug 24, 2022
CVE-2022-24375HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 24, 2022
CVE-2022-25231HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-21208HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-2932MEDIUM6.1
  • JavaScript logoJavaScript
  • mobiledoc-kit
NoYesAug 22, 2022

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