CVE-2018-7159: nodejs node.js Misinterpretation of Input
Vulnerability summary
CVE-2018-7159 is a medium (CVSS 5.3) Misinterpretation of Input vulnerability in nodejs node.js. EPSS estimates a 3.54% chance of exploitation in the next 30 days, higher than 89.3% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 3Timeline
- 17-05-2018PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
3.54%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
Decrease -0.02 pp
From 3.56% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-115Misinterpretation of InputThe product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion.
- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine2 products
- nodejs< 8.11.0-r0
- nodejs-current< 9.10.0-r0
Debian1 product
- nodejs< 8.11.1~dfsg-2
Nodejs1 product
- node.js≥ 4.0.0, ≤ 4.1.2 | ≥ 4.2.0, < 4.9.0 | ≥ 6.0.0, ≤ 6.8.1 | ≥ 6.9.0, < 6.14.0 | ≥ 8.0.0, ≤ 8.8.1 | ≥ 8.9.0, < 8.11.0 | ≥ 9.0.0, < 9.10.0
The node.js project1 product
- node.js≥ 4.0, < 5.0 | ≥ 6.0, < 7.0 | ≥ 8.0, < 9.0 | ≥ 9.0, < 10.0
Ubuntu1 product
- nodejsAll versions (No fix recorded)
5 vendors · 6 products