VDB
Sign up
HIGH7.5

GHSA-cggh-pq45-6h9x

llhttp vulnerable to HTTP request smuggling

Quick fix

GHSA-cggh-pq45-6h9x — llhttp: upgrade to the fixed version with the command below.

npm install llhttp@8.1.1

Details

The llhttp parser in the http module in Node v20.2.0 does not strictly use the CRLF sequence to delimit HTTP requests. This can lead to HTTP Request Smuggling (HRS).

The CR character (without LF) is sufficient to delimit HTTP header fields in the llhttp parser. According to RFC7230 section 3, only the CRLF sequence should delimit each header-field. This impacts all Node.js active versions: v16, v18, and, v20

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/llhttp
Introduced in: 0Fixed in: 8.1.1
Fixnpm install llhttp@8.1.1

References