HTTP Response Splitting Affecting eventsource-encoder package, versions <1.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-EVENTSOURCEENCODER-16691315
  • published14 May 2026
  • disclosed8 May 2026
  • creditUnknown

Introduced: 8 May 2026

NewCVE-2026-44214  (opens in a new tab)
CWE-113  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade eventsource-encoder to version 1.0.2 or higher.

Overview

eventsource-encoder is an Encodes events as well-formed EventSource/Server Sent Event (SSE) messages

Affected versions of this package are vulnerable to HTTP Response Splitting via unsanitized event and id fields in the encoding process. An attacker can inject arbitrary Server-Sent Events line terminators and forge additional SSE fields or entire messages on the stream by supplying specially crafted input to these fields. This is only exploitable if untrusted input is passed into the event or id fields of a message.

Workaround

This vulnerability can be mitigated by validating or stripping line terminators from any untrusted value before passing it to the encoder.

CVSS Base Scores

version 4.0
version 3.1