JLSEC-2026-619 json
CR/LF injection in server-sent events (SSE) fields in HTTP.jl
published 4mo ago modified 3mo ago
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### Description
The server-side SSE serializer wrote the single-line fields `event`, `id`, and `retry` verbatim to the `text/event-stream` wire with no CR/LF filtering, and split the multi-line `data` field only on `\n`, ignoring a bare `\r` that is also a valid SSE line terminator. The `SSEEvent` constructor validated nothing. An application echoing attacker-influenced text into `id`/`event`/`retry` (for example a `Last-Event-ID` or correlation id) could embed CR/LF to forge additional SSE fields or a blank-line dispatch boundary, injecting complete events into every connected `EventSource` client.
### Impact
SSE event injection: an attacker could forge or inject arbitrary events delivered to all connected EventSource clients.
### Patches
Fixed in HTTP.jl v2.4.0. The `SSEEvent` keyword constructor rejects CR/LF in `event`/`id` (and NUL in `id`, and a negative `retry`), `write(::SSEStream, ::SSEEvent)` re-validates as defense-in-depth, and `data` is split on `\r\n|\r|\n` so all line-break forms normalize to separate `data:` lines with no raw CR on the wire.
Reported to the JuliaLang security team through Anthropic's Coordinated Vulnerability Disclosure program.
Patch / fix
- julia HTTP 2.4.0
- github.com/JuliaWeb/HTTP.jl@e861651 commit
- github.com/JuliaWeb/HTTP.jl#1316 pull request
Is JLSEC-2026-619 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | HTTP | <2.4.0 |
2.4.0 |
References
Sources
- OSV JLSEC-2026-619
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.