undici is vulnerable to Denial of Service (DoS)
50
CVE Score
Medium
Denial of Service (DoS)
The WebSocket client in undici, including Node.js's bundled globalThis.WebSocket, automatically writes a PONG response for every PING frame it receives and ignores the false return value of socket.write(), which signals backpressure. A malicious or compromised WebSocket server can stream small PING frames while never reading the client's PONGs, causing the outbound write queue and heap to grow without bound until the Node.js process runs out of memory and terminates. The attack is remote, unauthenticated, and asymmetric, as small inbound PINGs produce a much larger retained outbound queue. The fix pauses WebSocket frame parsing when the automatic PONG write hits socket backpressure and resumes it on drain, bounding the outbound queue.
Upgrade the undici library to the patch version. No workarounds are available.
You are affected if you are using a version that falls within the vulnerable range and you connect to untrusted or potentially compromised WebSocket servers using the undici WebSocket client or Node.js's global WebSocket.
5.15.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 5.15.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.