Node.js is vulnerable to cross-connection memory disclosure via TLS write re-entrancy in the HTTPS request parser
- State
- Published
- Severity
- 8.1 High
- Published
- Nov 11, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 6, 2026
Description
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.
| Product | Versions |
|---|---|
| node nodejs | 0.0.0 to before 22.23.5 Affected23.0.0 to before 24.22.3 Affected25.0.0 to before 26.13.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.0 | 8.1 High | openjs |
Weaknesses
- CWE-416 Use After Free
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.