undici is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
undici's WebSocket client enforces the maxPayloadSize limit on the cumulative byte size of a fragmented message but never limits the number of fragments. A malicious or compromised WebSocket server can stream a very large number of small or empty continuation frames that each pass per-frame and cumulative-size checks while collectively driving unbounded memory growth in the client. An application that connects its WebSocket or WebSocketStream client to an attacker-controlled endpoint can be driven to memory exhaustion and denial of service. The fix adds a limit on the number of accepted fragments so a message cannot grow without bound.
Upgrade the undici library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
6.17.0 - 6.25.0
Fixed in 6.26.07.0.0 - 7.27.2
Fixed in 7.28.08.0.0 - 8.4.1
Fixed in 8.5.0undici is vulnerable to Denial of Service (DoS) in versions 6.17.0 - 6.25.0, 7.0.0 - 7.27.2 and 8.0.0 - 8.4.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.