CVE-2018-7159 Other in Node.js
Node.js HTTP parser mishandles spaces in Content-Length headers, potentially causing request smuggling or logic errors in user code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-7159?
CVE-2018-7159 is a medium-severity vulnerability in Nodejs Node.js, published on 17 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The HTTP parser in all current versions of Node.js ignores spaces in the `Content-Length` header, allowing input such as `Content-Length: 1 2` to be interpreted as having a value of `12`. The HTTP specification does not allow for spaces in the `Content-Length` value and the Node.js HTTP parser has been brought into line on this particular difference. The security risk of this flaw to Node.js users is considered to be VERY LOW as it is difficult, and may be impossible, to craft an attack that makes use of this flaw in a way that could not already be achieved by supplying an incorrect value for `Content-Length`. Vulnerabilities may exist in user-code that make incorrect assumptions about the potential accuracy of this value compared to the actual length of the data supplied. Node.js users crafting lower-level HTTP utilities are advised to re-check the length of any input supplied after parsing is complete.
Which versions are affected by CVE-2018-7159?
It affects 1 product.
Products include Nodejs Node.js.
How do I fix CVE-2018-7159?
Apply the vendor's patch.
Is CVE-2018-7159 being exploited?
There is no known exploitation of CVE-2018-7159 in the wild and no public exploit code.
Other vulnerabilities in Nodejs Node.js
Sources
Also known as ALPINE-CVE-2018-7159, AZL-40842, CLEANSTART-2026-OE76627, CLEANSTART-2026-QX63869, DEBIAN-CVE-2018-7159, GHSA-87vg-5pwm-8x6w and 1 more.