Skip to content
Smuggling / CRLF Disclosed report Advanced CVE-2025-23167

Improper HTTP header block termination in llhttp

The HTTP parser in Node.js 20 accepted an improper header block terminator, using a carriage-return line-feed carriage-return followed by another character instead of the required double carriage-return line-feed. This inconsistency could allow request smuggling, letting an attacker bypass proxy-based access controls and submit unauthorised requests.

kenballus Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Disclosed after 23 months

Summary by the program

A flaw in Node.js 20's HTTP parser allows improper termination of HTTP/1 headers using \r\n\rX instead of the required \r\n\r\n. This inconsistency enables request smuggling, allowing attackers to bypass proxy-based access controls and submit unauthorized requests.

The issue was resolved by upgrading llhttp to version 9, which enforces correct header termination.

Impact:

  • This vulnerability affects only Node.js 20.x users prior to the llhttp v9 upgrade.

The original report as published on HackerOne, by kenballus. 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 parser accepted a non-standard header block terminator instead of requiring the exact double carriage-return line-feed sequence, creating a parsing difference between the proxy and Node.js.

Impact

An attacker could smuggle requests past proxy-based access controls and submit unauthorised requests, though only Node.js 20.x users before the llhttp v9 upgrade are affected.

What the attacker needed

Node.js 20.x before llhttp v9; a front-end proxy that parses differently

The fix

It was fixed by upgrading llhttp to version 9, which enforces correct header termination.

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 web request is sent, its headers end with a specific blank line pattern so the server knows where the headers stop and the body begins. This parser accepted a slightly wrong ending, which meant a front-end proxy and the Node.js server could disagree about where one request ends and the next begins. An attacker could use that disagreement to slip a hidden request past the proxy's checks.

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 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.