undici is vulnerable to Denial of Service (DoS)
59
CVE Score
Medium
Denial of Service (DoS)
The undici EventSource client retains unbounded parser state when receiving data from a Server-Sent Events peer. A malicious or compromised server can send millions of tiny completed data: fields without a blank event separator, or a single unfinished line split across many chunks, causing per-field and per-chunk state to grow without limit. The byte-based maxEventSize and maxResponseSize limits do not bound this state, and maxResponseSize is enforced on the compressed body before decompression, so a small compressed response can expand into enough memory to terminate the process. The fix bounds the number of data fields and buffered chunks, the unfinished-line length, and per-field byte totals independently of the byte limits.
Upgrade the undici library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use EventSource to connect to an untrusted or potentially compromised server.
6.5.0 - 6.29.0
Fixed in 6.29.17.0.0 - 7.30.0
Fixed in 7.30.18.0.0 - 8.12.1
Fixed in 8.12.2undici is vulnerable to Denial of Service (DoS) in versions 6.5.0 - 6.29.0, 7.0.0 - 7.30.0 and 8.0.0 - 8.12.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.