Reachable assertion in node:zlib sync API crashes the entire process via spoofed TypedArray byteLength (all 11 *Sync functions affected)
A spoofed TypedArray byteLength can trigger a reachable assertion in Node.js's synchronous zlib APIs, crashing the whole process. Repeated exploitation can cause a denial of service.
- Triaged in 5 days
- Fixed in 18 days
- Disclosed after 48 days
Summary by the program
A flaw in Node.js allows a spoofed TypedArray byteLength to trigger a reachable assertion in the synchronous node:zlib APIs, causing the entire process to crash. All 11 synchronous zlib functions are affected.
Repeated exploitation of this condition can result in a denial of service.
This vulnerability affects Node.js 22.x, 24.x, and 26.x.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the synchronous zlib bindings trust the byteLength reported by a TypedArray without validating it against the real underlying buffer, so a spoofed value reaches an assertion.
Impact
An attacker could crash the Node.js process, and repeated exploitation can result in a denial of service.
What the attacker needed
Ability to pass a crafted TypedArray to a *Sync zlib call
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Node.js has built-in functions for compressing and decompressing data, and some of them run synchronously. If a program passes a specially crafted object that lies about how many bytes it contains, those functions hit an internal check and the whole Node.js process stops. An attacker who can supply such input repeatedly can keep the service down.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.