CVE-2021-22960: XSS
An HTTP Request Smuggling (HRS) vulnerability was found in the llhttp library, used by Node.JS. During the parsing of chunked messages, the chunk size parameter was not validated properly. In situations where HTTP conversations are being proxied (such as proxy, reverse-proxy, load-balancer), an attacker can use this flaw to inject arbitrary messages through the proxy. The highest threat from this vulnerability is to confidentiality and integrity.
Other sources
Node.js is vulnerable to HTTP request smuggling, caused by an error when parsing the body of chunked requests. A remote attacker could send a specially-crafted request to lead to HTTP Request Smuggling (HRS). An attacker could exploit this vulnerability to poison the web cache, bypass web application firewall protection, and conduct XSS attacks.
— IBM
The parse function in llhttp < 2.1.4 and < 6.0.6. ignores chunk extensions when parsing the body of chunked requests. This leads to HTTP Request Smuggling (HRS) under certain conditions.
The parse ignores chunk extensions when parsing the body of chunked requests. This leads to HTTP Request Smuggling (HRS) under certain conditions.
The fix for this is included in llhttp v2.1.4 and v6.0.6.
Impacts:
All versions of the 16.x, 14.x, and 12.x releases lines.
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2021-22960?
CVE-2021-22960 is an HTTP Request Smuggling (HRS) vulnerability in the llhttp library used by Node.JS.
How does CVE-2021-22960 affect the llhttp library?
CVE-2021-22960 affects versions of llhttp prior to 2.1.4 and 6.0.6, where the parse function ignores chunk extensions when parsing the body of chunked messages.
What is the severity of CVE-2021-22960?
CVE-2021-22960 has a severity value of 6.1, which is considered medium.
Which software packages are affected by CVE-2021-22960?
CVE-2021-22960 affects the following software packages: rh-nodejs14-nodejs, rh-nodejs14-nodejs-nodemon, rh-nodejs12-nodejs, llhttp, node.
How can I fix CVE-2021-22960?
To fix CVE-2021-22960, upgrade to llhttp version 2.1.4 or 6.0.6, or update the affected software packages to the recommended versions.