UBUNTU-CVE-2026-123874: Use After Free

Published Nov 12, 2026
·
Updated

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).

Affected Software

8 affected components
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*
ubuntu/nodejs*

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Node.js HTTP/2 servers in the affected 26.x line since 26.9.0 or 24.x line since 24.22.0 are exposed when an application uses stream.respondWithFile() or stream.respondWithFD() to serve files. Both TLS-protected and cleartext HTTP/2 connections are affected.

2

Does exploitation require authentication or non-default HTTP/2 settings?

No. An unauthenticated client can trigger the issue, and no configuration changes beyond an application serving a file through respondWithFile() or respondWithFD() are required.

3

What application behavior enables the vulnerable code path?

The application must serve a file using stream.respondWithFile() or stream.respondWithFD(). The client can then cause an Http2Stream to be freed while a write referencing that stream remains queued on the socket.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203