Files
node/doc/api
Matteo Collina 62ae278a23 http2: charge inbound DATA retained by streams to maxSessionMemory
Inbound DATA frames delivered to JS while a stream is paused are
retained in the stream's readable buffer until the application reads
them. These were not counted against the session's maxSessionMemory, so
a peer could send many tiny DATA frames on a stream the application is
not draining and make the session retain an unbounded amount of memory,
in proportion to the number of frames rather than the bytes sent.

Charge each such DATA chunk (plus a per-chunk overhead comparable to the
Buffer view bookkeeping) against maxSessionMemory, and release it when
the stream resumes reading (ReadStart) or is destroyed (RemoveStream).
Add connection-level backpressure so the session stops reading from the
socket once it can no longer afford the inbound queued data, resuming
when the application consumes it.

Refs: https://hackerone.com/reports/4089663
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs-private/node-private/pull/1000
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
CVE-ID: CVE-2026-123868
2026-11-07 13:22:31 +01:00
..
2026-10-13 17:01:54 +00:00
2026-09-20 17:39:33 -04:00
2026-10-13 17:01:54 +00:00
2026-09-15 10:49:29 +02:00
2026-09-29 00:33:14 +02:00
2025-12-16 20:31:28 +00:00
2026-08-26 00:56:17 +02:00
2026-08-05 11:15:08 +02:00
2026-09-29 00:33:14 +02:00
2026-08-26 00:55:58 +02:00
2026-10-13 17:01:54 +00:00
2026-09-08 22:24:17 +02:00
2026-08-25 19:01:55 -04:00
2026-10-06 13:15:55 +02:00
2026-10-13 17:01:54 +00:00
2026-10-06 13:15:55 +02:00