sse-channel: SSE Injection via unsanitized event fields
Moderate severity
GitHub Reviewed
Published
Apr 27, 2026
in
rexxars/sse-channel
•
Updated May 5, 2026
Description
Published to the GitHub Advisory Database
May 5, 2026
Reviewed
May 5, 2026
Last updated
May 5, 2026
Impact
Implementations that allows user-provided values to be passed to
event,retryoridfields would be susceptible to event spoofing, where an attacker could inject arbitrary messages into the stream.Patches
Patch available in v4.0.1.
Workarounds
Do not allow user data to control
event,retryoridfields, and if you must - sanitize the input before passing it tosse-channel, stripping any newlines.Resources
rexxars/sse-channel#42
References