Node.js is vulnerable to an HTTP/2 use-after-free via respondWithFile() stream reset during a pending write
- State
- Published
- Severity
- 7.5 High
- Published
- Nov 11, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 6, 2026
Description
A use-after-free in Node.js HTTP/2 lets an unauthenticated client corrupt server memory, over both TLS and cleartext, when the server serves files with respondWithFile() or respondWithFD(). A client can make the server free an Http2Stream while a write request that points to it is still queued on the socket; when that write completes, the code dereferences and makes a virtual call through the freed object. The only precondition is that the application serves a file with stream.respondWithFile() or stream.respondWithFD(), with default settings otherwise. This vulnerability affects Node.js 26.x (since 26.9.0) and 24.x (since 24.22.0).
| Product | Versions |
|---|---|
| node nodejs | 24.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 | 7.5 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.