Skip to content
DoS Disclosed report Advanced CVE-2026-21714

Memory leak in Node.js HTTP/2 server via WINDOW_UPDATE on stream 0 leads to resource exhaustion

A Node.js HTTP/2 server leaks memory when a client sends connection-level WINDOW_UPDATE frames that push the flow-control window past its maximum, because the server closes the connection but never frees the session object. An attacker could repeatedly trigger this to exhaust server memory.

galbarnahum Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 3 days
  • Fixed in 53 days
  • Disclosed after 59 days

Summary by the program

A memory leak occurs in Node.js HTTP/2 servers when a client sends WINDOW_UPDATE frames on stream 0 (connection-level) that cause the flow control window to exceed the maximum value of 2³¹-1. The server correctly sends a GOAWAY frame, but the Http2Session object is never cleaned up.

This vulnerability affects HTTP2 users on Node.js 20, 22, 24 and 25.

The original report as published on HackerOne, by galbarnahum. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the error path that sends GOAWAY on an invalid connection-level window update does not destroy or dereference the Http2Session, so the object stays in memory.

What the attacker needed

HTTP/2 server on Node.js 20, 22, 24 or 25; attacker can open connections to the server

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

HTTP/2 uses a flow-control window to stop one side sending more data than the other can handle. A client can send a special frame to increase that window, and if it pushes the number past the allowed maximum the server shuts the connection down. The bug is that the server forgets to release the memory it set aside for that connection, so repeating the trick slowly uses up the server's memory.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.