CVE-2022-35256: HTTP Request Smuggling Due to Incorrect Parsing of Header Fields
A vulnerability was found in NodeJS due to improper validation of HTTP requests. The llhttp parser in the HTTP module in Node.js does not correctly handle header fields that are not terminated with CLRF. This issue may result in HTTP Request Smuggling. This flaw allows a remote attacker to send a specially crafted HTTP request to the server and smuggle arbitrary HTTP headers.
Other sources
Node.js is vulnerable to HTTP request smuggling, caused by the failure to correctly handle header fields that are not terminated with CLRF by the llhttp parser in the http module. 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 llhttp parser in the http module in Node v18.7.0 does not correctly handle header fields that are not terminated with CLRF. This may result in HTTP Request Smuggling.
The llhttp parser in the http module in Node.js v18.7.0 does not correctly handle header fields that are not terminated with CLRF. This may result in HTTP Request Smuggling.
— Node.Js
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/nodejsto a version that resolves this vulnerability.Fixed in 1:16.17.1-1.el9_0 - Upgrade
Upgrade
redhat/nodejsto a version that resolves this vulnerability.Fixed in 1:16.18.1-3.el9_1 - Upgrade
Upgrade
redhat/rh-nodejs14-nodejsto a version that resolves this vulnerability.Fixed in 0:14.20.1-2.el7 - Upgrade
Upgrade
redhat/NodeJSto a version that resolves this vulnerability.Fixed in 14.20.1 - Upgrade
Upgrade
redhat/Nodejsto a version that resolves this vulnerability.Fixed in 16.17.1 - Upgrade
Upgrade
redhat/Nodejsto a version that resolves this vulnerability.Fixed in 18.9.1 - Upgrade
Upgrade
redhat/llhttpto a version that resolves this vulnerability.Fixed in 6.0.10 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.20.1Fixed in 16.17.1Fixed in 18.9.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.20.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 16.17.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 18.9.1 - Upgrade
Upgrade
debian/llhttpto a version that resolves this vulnerability.Fixed in 9.4.3+~cs12.11.9-2 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 18.20.4+dfsg-1~deb12u2Fixed in 18.20.4+dfsg-1~deb12u3Fixed in 20.19.2+dfsg-1+deb13u2Fixed in 20.19.2+dfsg-1+deb13u3Fixed in 24.21.0+dfsg+~cs24.13.4-1Fixed in 24.22.2+dfsg+~cs24.19.2-1 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 14.20.1-r0 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 16.17.1-r0 - Upgrade
Upgrade
alpine/nodejs-currentto a version that resolves this vulnerability.Fixed in 18.9.1-r0 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 18.10.0+dfsg-1 - Upgrade
Upgrade
llhttpto a version that resolves this vulnerability.Fixed in 6.0.10
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID of this NodeJS vulnerability?
The vulnerability ID of this NodeJS vulnerability is CVE-2022-35256.
What is the severity of CVE-2022-35256?
The severity of CVE-2022-35256 is medium.
What is the affected software for CVE-2022-35256?
The affected software for CVE-2022-35256 is NodeJS versions 16.17.1-1.el9_0, 16.18.1-3.el9_1, 14.20.1, 16.17.1, and 18.9.1.
What is the description of CVE-2022-35256?
CVE-2022-35256 is a vulnerability in NodeJS due to improper validation of HTTP requests, allowing a remote attacker to send a potentially malicious request.
How can I fix CVE-2022-35256?
To fix CVE-2022-35256, it is recommended to update NodeJS to a version that includes the necessary security patches.