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.
Overview
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.
- Published
- 5/17/2018
- Last modified
- 10/8/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
node.js nodejs | ≥ 4.0.0, ≤ 4.1.2 | Verify advisory | Source |
node.js nodejs | ≥ 4.2.0, < 4.9.0 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
node.js nodejs | ≥ 6.0.0, ≤ 6.8.1 | Verify advisory | Source |
node.js nodejs | ≥ 6.9.0, < 6.14.0 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
node.js nodejs | ≥ 8.0.0, ≤ 8.8.1 | Verify advisory | Source |
node.js nodejs | ≥ 8.9.0, < 8.11.0 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
node.js nodejs | ≥ 9.0.0, < 9.10.0 | Verify advisory | Source |
Node.js The Node.js Project | 4.x | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Node.js The Node.js Project | 6.x | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Node.js The Node.js Project | 8.x | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Node.js The Node.js Project | 9.x | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 5.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.