Skip to main content

sse-channel CVE-2026-44217

MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-05-05 https://github.com/rexxars/sse-channel GHSA-84hm-wfh8-c5pg
6.6
CVSS 4.0 · Vendor: https://github.com/rexxars/sse-channel
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with malicious query parameter
  2. Delivery
    Unsanitized user input reaches sse-channel event/id/retry field
  3. Exploit
    Newline characters inject new SSE directives into stream
  4. Execution
    Client EventSource parser processes spoofed event
  5. Persist
    Frontend JavaScript listener triggers on malicious event
  6. Impact
    Unintended client-side action executed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

Exploitation requires the application to pass user-controlled input directly to the event, retry, or id parameters of sse-channel without sanitization. If the application uses only static, server-defined event names and does not expose these fields to user input, the vulnerability does not apply. The attack surface is limited to SSE endpoints where user input influences field values. Default configurations of sse-channel are safe if developers do not intentionally pass user data to vulnerable parameters. The primary limiting factor is code design: applications that sanitize input or restrict these fields to server-controlled values are not vulnerable.

Impact

Risk is MODERATE to HIGH in real-world deployments where applications expose SSE endpoints that accept user input. The attack surface depends on application design: implementations that intentionally pass user-controlled data to SSE fields are vulnerable; many SSE implementations use static or server-controlled values and are not affected. CVSS vector is not provided in input data, limiting quantitative scoring, but the attack vector is clearly network-accessible (SSE runs over HTTP), requires no authentication for the SSE consumer, and the exploitation is trivial (newline injection). The practical impact varies: if the SSE stream controls critical business logic on the client (e.g., transaction confirmations, account balances), event spoofing poses HIGH risk. If the stream is used for cosmetic updates (e.g., UI notifications), risk is LOWER. Patch availability (v4.0.1) and simplicity of workaround (input sanitization) reduce urgency but do not eliminate risk for unpatched systems with vulnerable code patterns. The vulnerability is not marked as actively exploited (no KEV status), but the attack requires no sophistication and could be weaponized trivially if discovered in a production application.

Exploit ScenarioDerived

A web application uses sse-channel to stream real-time notifications to clients, accepting a user-supplied event type parameter from a query string (e.g., /sse?event=order_update). An attacker crafts a request with event=order_update%0Aid:%20malicious to inject a newline and arbitrary id field, causing the SSE stream to emit a spoofed event. A frontend EventSource listener that trusts the event name triggers unintended logic, such as displaying a fake order confirmation or payment success message to other users connected to the same stream.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Event spoofing in sse-channel (npm) allows attackers to inject arbitrary Server-Sent Events (SSE) messages by passing unsanitized user input to the event, retry, or id fields, enabling client-side manipulation and data integrity violations. Affects sse-channel versions 4.0.0 and earlier; patched in v4.0.1. No public exploit code identified at time of analysis, but vulnerability is straightforward to exploit if user-controlled data reaches SSE field parameters.

RemediationAI

Primary fix: Upgrade sse-channel to version 4.0.1 or later immediately. For applications unable to upgrade immediately, implement input sanitization at the application level: remove or escape all newline characters (CR, LF) and carriage returns from user input before passing data to the event, retry, or id fields of sse-channel - this prevents injection of new SSE directives. Additionally, validate that user-supplied values for these fields conform to expected formats (e.g., event names should match a whitelist of legitimate event types). Use the GitHub advisory (https://github.com/advisories/GHSA-84hm-wfh8-c5pg) as reference for patch confirmation and additional context.

Affected Packages

npm sse-channel fix: 4.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

sse-channel is an npm package for generating Server-Sent Events (SSE) streams. Server-Sent Events are transmitted as text using the HTTP protocol with MIME type text/event-stream, where each event is delimited by double newlines. The protocol defines specific field names (event, id, retry, data) that control stream behavior. The CWE-93 (Improper Neutralization of CRLF Sequences in HTTP Headers) classification indicates the root cause is improper input validation - specifically, the failure to sanitize newline characters (CRLF/LF) in user-supplied values before embedding them into SSE field headers. An attacker injecting a newline into the event, retry, or id field can terminate the current field and introduce arbitrary new fields or events into the stream, effectively spoofing event identity and triggering unintended EventSource listeners on frontend clients consuming the stream.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/rexxars/sse-channel) PRIMARY 6.6 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

Primary rating from Vendor (https://github.com/rexxars/sse-channel) · only source for this CVE.

CVSS VectorVendor: https://github.com/rexxars/sse-channel

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 12, 2026 - 20:22 NVD
6.6 (MEDIUM)

DescriptionCVE.org

Impact

Implementations that allows user-provided values to be passed to event, retry or id fields would be susceptible to event spoofing, where an attacker could inject arbitrary messages into the stream.

  • Event Spoofing: Attacker can inject arbitrary SSE events into the stream
  • Client-side Manipulation: Injected events can trigger unintended behavior in frontend JavaScript EventSource listeners
  • Data Integrity: Consumers of the SSE stream cannot distinguish injected events from legitimate ones

Patches

Patch available in v4.0.1.

Workarounds

Do not allow user data to control event, retry or id fields, and if you must - sanitize the input before passing it to sse-channel, stripping any newlines.

Resources

https://github.com/rexxars/sse-channel/issues/42

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +33
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Affected Products (CPE)CVE.org

pkg:npm/sse-channel

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy