boxscore/security
CVE · referencelatest edition

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.
CWE-20, CWE-115 · CNA: nodejs · CVSS v3.1 · 3 references · NVD status: Modified

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
DateEventDetail
February 15, 2018ReservedReserved by nodejs
May 17, 2018PublishedPublished (CNA: nodejs)
October 8, 2026ENRICHEDENRICHED — 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
VendorProduct / PackageEcosystemVersion introducedFixed
The Node.js ProjectNode.js—4.x—

Weaknesses

CWE-20 · CWE-115

References (3)

Related

Authoritative record: CVE-2018-7159 at cve.org

Vendors: the node.js project

Weaknesses: CWE-20 · CWE-115

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.