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.
Patch available in v4.0.1.
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.
https://github.com/rexxars/sse-channel/issues/42
{
"github_reviewed_at": "2026-05-05T22:17:02Z",
"github_reviewed": true,
"severity": "MODERATE",
"nvd_published_at": "2026-05-12T20:16:42Z",
"cwe_ids": [
"CWE-93"
]
}