CVE-2022-1650: eventsource - Exposure of Sensitive Information in eventsource

eventsource Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Critical
9.3

CVE-2022-1650: Exposure of Sensitive Information in eventsource. Affects eventsource across 2 version ranges.

< 1.1.1 >= 2.0.0, < 2.0.2

Fixed in 1.1.1 or 2.0.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-1650 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The eventsource package is an npm package that provides a client-side EventSource implementation for browsers that do not support the native EventSource API. It allows developers to establish a persistent connection to a server and receive real-time updates. The package is widely used in web applications to enable server-sent events (SSE).

Vulnerability Detail

The vulnerability (CVE-2022-1650) in eventsource allows for the exposure of sensitive information. When fetching a URL with a link to an external site that triggers a redirect, the user's cookies and authorization headers are leaked to the third-party application. This violates the same-origin policy, which should sanitize the headers. The impact of this vulnerability is critical, as it can lead to unauthorized access to user data and potential account compromise.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.1.1 1.1.1
    npm install eventsource@1.1.1
  • >= 2.0.0, < 2.0.2 2.0.2
    npm install eventsource@2.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the eventsource package to the fixed versions as soon as possible.

Conclusion

The eventsource package is vulnerable to the exposure of sensitive information, which can lead to unauthorized access and potential account compromise. It is crucial to update to the fixed versions (1.1.1 or higher for npm ecosystem, 2.0.2 or higher for npm ecosystem) to mitigate this vulnerability. If you are unsure whether your application is affected, you can use Vulert's playground (https://vulert.com/scanner) to check. For additional support and guidance, please reach out to DevNack.com.

See every vulnerability recorded for eventsource →

Share this vulnerability

FAQ

The impact of this vulnerability is critical, as it can lead to unauthorized access to user data and potential account compromise.

To fix this vulnerability, update the eventsource package to version 1.1.1 or higher for npm ecosystem or version 2.0.2 or higher for npm ecosystem.

There is no known workaround for this vulnerability. It is recommended to update the eventsource package to the fixed versions.

Yes, you can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using package-lock.json.

For further support on vulnerability remediation, you can contact info@devnack.com.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.1.1 1.1.1
    npm install eventsource@1.1.1
  • >= 2.0.0, < 2.0.2 2.0.2
    npm install eventsource@2.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback