A re-entrancy flaw in Node.js HTTPS lets an unauthenticated client read memory belonging to other connections, including TLS private keys and other us...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Alpine:v3.21nodejs |
< 22.23.5-r0→ 22.23.5-r0 |
22.23.5-r0 |
| Alpine:v3.22nodejs |
< 22.23.5-r0→ 22.23.5-r0 |
22.23.5-r0 |
| Alpine:v3.23nodejs |
< 24.22.3-r0→ 24.22.3-r0 |
24.22.3-r0 |
| Alpine:v3.24nodejs |
< 24.22.3-r0→ 24.22.3-r0 |
24.22.3-r0 |
| Alpine:v3.24nodejs-current |
< 26.13.1-r0→ 26.13.1-r0 |
26.13.1-r0 |
| Alpine:v3.24llhttp |
< 9.4.4-r0→ 9.4.4-r0 |
9.4.4-r0 |
Original description The description as published by the source.
A re-entrancy flaw in Node.js HTTPS lets an unauthenticated client read memory belonging to other connections, including TLS private keys and other users' requests. TLSWrap::DoWrite() calls ClearOut() directly when asked to write zero bytes; if that write is issued from JavaScript running inside the HTTP parser's on_body callback, ClearOut() decrypts the next TLS record while the parser is still mid-body, re-entering llhttp_execute() and causing a use-after-free and an out-of-bounds heap read. The server then copies that freed or unrelated heap memory into the response for the request body. Triggering it requires a handler that calls res.flushHeaders() before the request body ends and later calls res.end() with a non-empty chunk, and reading the leaked memory requires any ordinary route that echoes or stores a request body. Cleartext node:http is not affected. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security.alpinelinux.org