# CVE-2018-7159: Node.js 4 and 1 other: Misinterpretation of Input

CVE-2018-7159 is fixed in Node.js 6 on 1 platform by Node.js 6 6.17.0 (version 6.17.0), released February 28, 2019. 1 other affected product has no fix yet. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-7159
- Priority: Routine
- CVSS: 5.3
- EPSS: 0.0354
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 17, 2018
- Weakness: CWE-115: Misinterpretation of Input
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-7159

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | Node.js 6 | 6.17.0 | [Node.js 6 6.17.0](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.6-6.17.0.md) | Feb 28, 2019 |

## No fix yet

| Platform | Product | Status |
|---|---|---|
| Windows apps | Node.js 4 | no-fix |

---

Data as of 2026-11-07T12:40:37Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
