Skip to content
Smuggling / CRLF Disclosed report Advanced CVE-2026-105481

Keep-alive socket process a response that was written before the request was sent

A flaw in Node.js HTTP Agent connection reuse lets a client accept a response that was sent before the client sent its request, because the guard that destroys idle keep-alive sockets with unexpected data only runs when the event loop polls for I/O. An attacker could have their unsolicited response parsed as the legitimate answer to a later request on the reused connection.

hasanfleyah Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Triaged in 25 hours
  • Fixed in 34 days
  • Disclosed after 36 days

Summary by the program

A flaw in Node.js HTTP Agent connection reuse can cause a client to accept as valid a response that was sent before the client has sent the request. This is an incomplete fix of CVE-2026-48931.

The guard that destroys idle keep-alive sockets when unexpected data arrives only runs when the event loop polls for I/O. If an unsolicited response has already reached the socket but has not been read yet when the socket is handed to a new request, for example because the event loop was busy with synchronous work, the guard is removed without seeing it and the data is parsed as the response to the new request.

This vulnerability affects Node.js 26.x, 24.x, and 22.x.

The original report as published on HackerOne, by hasanfleyah. 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 idle-socket guard is only evaluated during event-loop I/O polling, so a response already buffered on the socket is not detected before the socket is reused and its data is parsed as the new response.

Impact

A client could accept a response sent before its request as valid, though the text describes no concrete attack beyond this.

What the attacker needed

Attacker can write to the reused connection; event loop busy with synchronous work

The fix

The guard should be checked when the socket is handed to a new request, not only during event-loop I/O polling; the text describes this as an incomplete fix of an earlier CVE rather than stating a new fix.

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.

When a program talks to a web server it can keep the connection open and reuse it for the next request, which saves time. This report says that if someone sends a reply on that idle connection before any request is made, and the program is busy doing other work at that moment, the reply can be mistaken for the answer to the next real request. That means the program may trust data that did not come from the server it meant to ask.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More by hasanfleyah

View all

3 more disclosed reports, best first.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.