CVE-2018-7159

MEDIUM
5.3
CVSS Score
Published: May 17, 2018 at 02:00 PM UTC
Updated: October 8, 2026 at 10:16 PM UTC
1 product affected across 1 vendorNode.js

Using Node.js by The Node.js Project?

Get instant alerts when new vulnerabilities affect Node.js - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 4%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.0.0 ≤ v ≤ 4.1.24.2.0 ≤ v < 4.9.06.0.0 ≤ v ≤ 6.8.16.9.0 ≤ v < 6.14.08.0.0 ≤ v ≤ 8.8.18.9.0 ≤ v < 8.11.09.0.0 ≤ v < 9.10.0*4.x6.x8.x9.x
Affected range stops below 4.9.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.14.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.11.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 9.10.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-115CWE-20

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card