Reference page — cumulative record through Monday, October 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
CVE-2018-7159
The HTTP parser in all current versions of Node.js ignores spaces in the `Content-Length` header, allowing input such as `Content-Length:…
AV AC PR UI S C I A CVSS EPSS %ile KEV
N L N N U N L N 5.3 .0357 89.2 —
AFFECTED
Product Versions Fixed
Node.js 4.x – —
TIMELINE
Feb 15 Reserved by nodejs
May 17 Published (CNA: nodejs)
Oct 8 ENRICHED — CVE-2018-7159 (The Node.js Project Node.js). Received CVSS 5.3 and CPE data from NVD.
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.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| February 15, 2018 | Reserved | Reserved by nodejs |
| May 17, 2018 | Published | Published (CNA: nodejs) |
| October 8, 2026 | ENRICHED | ENRICHED — CVE-2018-7159 (The Node.js Project Node.js). Received CVSS 5.3 and CPE data from NVD. |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| The Node.js Project | Node.js | — | 4.x | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2018-7159 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Monday, October 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.