cve.bz

CVE-2018-7159 nodejs node.js: Misinterpretation of Input

5.3 mediumEPSS 3.5%

Medium (5.3) in nodejs node.js. EPSS 3.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
3.5% (unchanged from 3.5% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-115 Misinterpretation of Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-7159 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-7159?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-7159?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-7159 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-7159

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-7159](https://cve.bz/cve/badge/CVE-2018-7159.svg)](https://cve.bz/cve/CVE-2018-7159)

HTML:

<a href="https://cve.bz/cve/CVE-2018-7159"><img src="https://cve.bz/cve/badge/CVE-2018-7159.svg" alt="CVE-2018-7159"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodejs:node.jsfrom 4.0.0 through 4.1.2
nodejs:node.jsfrom 4.2.0 before 4.9.0
nodejs:node.jsfrom 6.0.0 through 6.8.1
nodejs:node.jsfrom 6.9.0 before 6.14.0
nodejs:node.jsfrom 8.0.0 through 8.8.1
nodejs:node.jsfrom 8.9.0 before 8.11.0
nodejs:node.jsfrom 9.0.0 before 9.10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14nodejs8.11.1~dfsg-2DEBIAN-CVE-2018-7159
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSnodejsno fix listedUBUNTU-CVE-2018-7159
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morehttp-parser, http-parser-devel, http-parser-debuginfo0:2.7.1-8.el7RHSA-2019:2258
Red Hatrhel_software_collections:3::el7rh-nodejs8-nodejs, rh-nodejs8-nodejs-docs, rh-nodejs8-nodejs-devel and 1 more0:8.11.4-1.el7RHSA-2018:2949
Red Hatrhel_software_collections:3::el7rh-nodejs8-npm0:5.6.0-8.11.4.1.el7RHSA-2018:2949
SUSEEnterprise Storage 4, Linux Enterprise Module for Web and Scripting 12nodejs44.9.1-15.11.1SUSE-SU-2018:0952-1
SUSEEnterprise Storage 4, Linux Enterprise Module for Web and Scripting 12, OpenStack Cloud 7nodejs66.14.1-11.12.1SUSE-SU-2018:1183-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox68.2.0-78.51.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox-branding-SLED68-21.9.8SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-atk2.26.1-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-cairo1.15.10-2.13.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gdk-pixbuf2.36.11-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-glib22.54.3-2.14.7SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gtk33.10.9-2.15.3SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-harfbuzz1.7.5-2.7.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-libffi3.2.1.git259-2.3.3SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-libffi-gcc55.3.1+r233831-14.1SUSE-SU-2019:14246-1
3 more for SUSE in the JSON and on SUSE's page.
Alpinev3.8, v3.9, v3.10 and 14 morenodejs8.11.0-r0ALPINE-CVE-2018-7159
Alpinev3.8, v3.9, v3.10 and 14 morenodejs-current9.10.0-r0ALPINE-CVE-2018-7159
Azure Linux3rubygem-http_parser0.8.0-1AZL-40842

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7http-parser-0:2.7.1-8.el7Fixed 2019-08-06RHSA-2019:2258
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs8-nodejs-0:8.11.4-1.el7Fixed 2018-10-18RHSA-2018:2949
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-nodejs8-nodejs-0:8.11.4-1.el7Fixed 2018-10-18RHSA-2018:2949
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs8-nodejs-0:8.11.4-1.el7Fixed 2018-10-18RHSA-2018:2949
Red Hat Enterprise Linux 8http-parserNot affected
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat OpenShift Enterprise 3nodejsNot affected
Red Hat Software Collectionsrh-nodejs4-nodejsWill not fix
Red Hat Software Collectionsrh-nodejs6-nodejsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-7159.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON