Back to CVE records
Medium 5.3Published May 17, 2018

CVE-2018-7159The 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`.

Updated under an hour ago ()

Does this affect you?

It affects The Node.js Project Node.js and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
5.3 MEDIUM (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness (CWE)
CWE-115
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
nodejs
NVD analysis
Modified
Record last updated
Oct 8, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
The Node.js Project Node.js
node.js_project:node.js (from the name)
4.x; 6.x; 8.x; 9.x
CNA record
nodejs node.js
nodejs:node.js
from 4.0.0 through 4.1.2; from 4.2.0 before 4.9.0; from 6.0.0 through 6.8.1; from 6.9.0 before 6.14.0; from 8.0.0 through 8.8.1; from 8.9.0 before 8.11.0; from 9.0.0 before 9.10.0
NVD

References

  • x-refsource-confirm
  • vendor-advisory, x-refsource-redhat
  • x-refsource-confirm

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.