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.

Routine
CVSS
5.3
No vendor severity
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0354
89th percentile

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

ProductFixed inFixReleased
Windows apps
Node.js 6 6.17.0 Node.js 6 6.17.0 Feb 28, 2019
No fix yet
Node.js 4 (Windows apps) No fix yet no-fix n/a