Descrizione

A use-after-free in Node.js HTTP/2 stream teardown can leak response memory, including the contents of other connections' response buffers, to a peer. When a stream is torn down while a write is still backpressured, for example by a peer `RST_STREAM` or by the server's own per-stream timeout destroying the stream, the stream's response buffer is freed but a reference to it is still used, so freed or unrelated heap memory is written to the socket instead of the intended response. On Node.js 26.x and 24.x the teardown can be driven purely by a remote peer once the window-size change from 26.9.0 and 24.22.0 is present, and on all supported lines the same defect is reachable through an application-initiated teardown such as a per-stream idle timeout. This vulnerability affects Node.js 26.x, 24.x, and 22.x.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.6% (percentile 47).

Versioni da aggiornare

  • nodejs node: vulnerabili le versioni dalla 0.0.0 precedenti alla 22.23.5 → aggiornare alla 22.23.5 o successiva.
  • nodejs node: vulnerabili le versioni dalla 23.0.0 precedenti alla 24.22.3 → aggiornare alla 24.22.3 o successiva.
  • nodejs node: vulnerabili le versioni dalla 25.0.0 precedenti alla 26.13.1 → aggiornare alla 26.13.1 o successiva.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
nodejs node ≥ 0.0.0 < 22.23.5 22.23.5
nodejs node ≥ 23.0.0 < 24.22.3 24.22.3
nodejs node ≥ 25.0.0 < 26.13.1 26.13.1

Riferimenti