Node.js is vulnerable to an HTTP/2 use-after-free via respondWithFile() stream reset during a pending write (nodejs node)

CVE-2026-123874
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.68 % · percentile 54 ()
State
PUBLISHED
Published
Updated
Assigner
openjs
Affected products
nodejs · node
NVD status
Awaiting Analysis

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

Weaknesses (CWE)

Credits

  • Chris Rohlf in collaboration with Claude and Anthropic Research reporter
  • mcollina remediation developer
  • UlisesGascon remediation reviewer
  • aduh95 coordinator

References

Scores

VersionScoreVectorScored by
CVSS 3.0HIGH 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hopenjs
CVSS 3.0HIGH 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · ce714d77-add3-4f53-aff5-83d477b104bb (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
nodejs · node
affected : ≥ 24.0.0 < 24.22.3
affected : ≥ 25.0.0 < 26.13.1
Other versions : unaffected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD