SecurityContext

CVE-2018-7159: Node.js - Undefined

  • Cve: CVE-2018-7159
  • Name: Node.js - Undefined
  • 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.
  • Impact: Potential for incorrect Content-Length interpretation, but unlikely to be exploited for significant security breaches.
  • Remediation: Update to the latest Node.js version where this issue is addressed or verify Content-Length values after parsing.
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Epss score: 0.03542
  • Epss percentile: 0.8958
  • Assignee: [email protected]
  • Published at: 2018-05-17T14:29:00Z
  • Age in days: 3113
  • Modified at: 2026-10-08T22:16:47Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-7159
  • Nvd status: modified
  • Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-115Misinterpretation of Input
CWE-20Improper Input Validation

References

Same in every row:

  • Source: nvd
UrlTags
https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/Vendor Advisory
https://access.redhat.com/errata/RHSA-2019:2258Third Party Advisory
https://support.f5.com/csp/article/K27228191?utm_source=f5support&amp%3Butm_medium=RSS

Products

ProductAffectedPlatform boundSourcesUrl
nodejs:node.js>= 9.0.0, < 9.10.0; >= 8.9.0, < 8.11.0; >= 8.0.0, <= 8.8.1; >= 6.9.0, < 6.14.0; >= 6.0.0, <= 6.8.1; >= 4.2.0, < 4.9.0; >= 4.0.0, <= 4.1.2nonvd/v1/products/nodejs/node.js

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 3528253
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports