CVE-2026-123874: Use-after-free in Node.js HTTP/2 file-response streams
CVE-2026-123874 is a use-after-free vulnerability in Node.js HTTP/2 file-response handling affecting Node.js 26.x starting with 26.9.0 and 24.x starting with 24.22.0, before fixes in 26.13.1 and 24.22.3, respectively. When an application serves a file using stream.respondWithFile() or stream.respondWithFD(), an unauthenticated client can reset the stream while a socket write referencing its Http2Stream object remains pending. The stream can be freed before write completion, after which completion processing dereferences the freed object and makes a virtual call through it. The vulnerability permits server-memory corruption over both TLS and cleartext HTTP/2 connections.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote, unauthenticated attackers can corrupt memory in an affected Node.js server process. Dereferencing and making a virtual call through a freed Http2Stream object can cause process failure and denial of service. Arbitrary code execution and sensitive-memory disclosure are not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until patching is possible, terminate client HTTP/2 connections at a reverse proxy and use HTTP/1.1 to the Node.js backend, preventing attackers from directly manipulating backend HTTP/2 streams. Ensure the backend HTTP/2 listener is not directly reachable. Alternatively, temporarily disable HTTP/2 file-serving routes that use stream.respondWithFile() or stream.respondWithFD().
Remediation
Patch, then assume compromise.
Upgrade Node.js 24.x deployments to 24.22.3 or later and Node.js 26.x deployments to 26.13.1 or later. The fix retains HTTP/2 streams while socket writes referencing them remain pending. Restart all Node.js processes after updating, and rebuild and redeploy container images or bundled executables that embed the affected runtime.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-123874 exploited in the wild?
- As of Nov 28, 2026, Mallory has no reports of CVE-2026-123874 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-123874?
- As of Nov 28, 2026, Mallory has found no public exploit for CVE-2026-123874.
- Is there a patch for CVE-2026-123874?
- Upgrade Node.js 24.x deployments to 24.22.3 or later and Node.js 26.x deployments to 26.13.1 or later. The fix retains HTTP/2 streams while socket writes referencing them remain pending.
- How severe is CVE-2026-123874?
- CVE-2026-123874 has a CVSS v3 score of 7.5 (High) and an EPSS score of 0.68% (48th percentile) as of Nov 28, 2026.
Recent activity
43 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.