Changelog

nodejs/node · · 33 commits

Node ships security-heavy LTS releases

Major security fixes, a new X.509 API, and HTTP/TLS/http2 hardening land across the day.

Security releases for v26.13.1, v24.22.3, and v22.23.5 (aduh95c207dbf, aduh950d636a2, aduh95f4f5a3d) Node published three LTS security releases covering multiple high-severity issues in http2 and TLS, including header/buffer lifetime fixes, nested parser execution prevention, and mTLS/session-resumption hardening. The release notes call out several CVEs and make this the dominant change of the day.

Add X.509 certificate generation with CSR support (panva5498ee6) Node now exposes generateX509Certificate() and generateX509CertificateSync(), producing X509Certificate objects for self-signed or issuer-signed v3 certs. The new API accepts subjects, public keys, serials, validity windows, signing digests, and PKCS#10 CSRs, giving users first-class certificate issuance without shelling out to OpenSSL.

Harden HTTPS agent pooling by TLS policy (mcollina20fd568) The HTTPS Agent keying logic now encodes TLS option types and values so sockets and cached sessions cannot be reused across distinct trust or identity policies. That closes a subtle policy-confusion class of bugs where different SecureContext/callback objects could previously collapse to the same pool key.

Fix re-entrant HTTP/TLS parser execution (mcollina5d6dedb, mcollinaa92cdeb) HTTP client/server parsing now defers synchronous data re-entry instead of running llhttp inside itself, and TLS empty writes no longer trigger nested parser execution mid-callback. This prevents corrupted parser state and memory-safety issues when user JS causes socket activity from within parser callbacks.

Tighten http2 memory and lifetime handling (mcollina0d6d38f, mcollina3f3c593, mcollina9c6e6ef, mcollina00ba7f0, mcollina059c801) http2 now retains stream/write objects until socket writes finish, counts paused inbound DATA against maxSessionMemory, releases headers when streams are removed, and fixes an ALTSVC buffer overflow. Together these changes plug multiple use-after-free and unbounded-memory conditions in stream teardown and backpressure handling.

Fix remote TLS server crash and SNI/session edge cases (pimterry633df28, pimterry5ebf6ad, pimterry42213da, pimterryae94cd8, mcollinaa69953c) Several TLS fixes land together: a remotely reachable server crash is fixed, mTLS resumption is disabled without a session-id context, and SNI is now pinned so renegotiation, HRR, and resumption cannot change it. SNI contexts with CA-only configuration are also applied correctly for client certificate verification.

Other misc changes

  • Restored stack traces for fs/promises readFile/writeFile/appendFile errors.
  • Updated bundled deps: nghttp2, nghttp3, ngtcp2, and llhttp.
  • Inspector ws frame OOB read fix.
  • Permission/watch and proxy credential redaction fixes.
  • FIPS/OpenSSL test and tooling adjustments.
  • Web Worker API enabled by default.
  • Minor crypto/X.509 backend guard cleanup and other changelog/docs updates.