Improper input validation in NodeJS Node.js
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 12 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| NodeJS | Node.js | 4.x; 6.x; 8.x; 9.x | — | No fix listed | CNA |
- Node.js VendorNodeJS Affected 4.x; 6.x; 8.x; 9.x Fixed in — No fix listed CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* | 4.0.0 – 4.1.2 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* | 4.2.0 to before 4.9.0 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* | 6.0.0 – 6.8.1 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* | 6.9.0 to before 6.14.0 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* | 8.0.0 – 8.8.1 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* | 8.9.0 to before 8.11.0 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* | 9.0.0 to before 9.10.0 | Vulnerable | NodeJS |
- cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* Versions 4.0.0 – 4.1.2 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* Versions 4.2.0 to before 4.9.0 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* Versions 6.0.0 – 6.8.1 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* Versions 6.9.0 to before 6.14.0 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* Versions 8.0.0 – 8.8.1 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* Versions 8.9.0 to before 8.11.0 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* Versions 9.0.0 to before 9.10.0 Vulnerable ·NodeJS
Remediation
Red Hat 2 advisories
- RHSA-2019:2258 Released 2019-08-06 · Red Hat rating Moderatehttp-parser security update
- Red Hat Enterprise Linux Client (v. 7) http-parser-2.7.1-8.el7
- Red Hat Enterprise Linux Client Optional (v. 7) http-parser-devel-2.7.1-8.el7
- Red Hat Enterprise Linux ComputeNode (v. 7) http-parser-2.7.1-8.el7
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) http-parser-devel-2.7.1-8.el7
- Red Hat Enterprise Linux Server (v. 7) http-parser-2.7.1-8.el7, http-parser-2.7.1-8.el7.ppc
- Red Hat Enterprise Linux Server Optional (v. 7) http-parser-devel-2.7.1-8.el7, http-parser-devel-2.7.1-8.el7.ppc
- Red Hat Enterprise Linux Workstation (v. 7) http-parser-2.7.1-8.el7
- Red Hat Enterprise Linux Workstation Optional (v. 7) http-parser-devel-2.7.1-8.el7
- RHSA-2018:2949 Released 2018-10-18 · Red Hat rating Importantrh-nodejs8-nodejs security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs8-nodejs-8.11.4-1.el7, rh-nodejs8-nodejs-devel-8.11.4-1.el7, rh-nodejs8-nodejs-docs-8.11.4-1.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-nodejs8-nodejs-8.11.4-1.el7, rh-nodejs8-nodejs-devel-8.11.4-1.el7, rh-nodejs8-nodejs-docs-8.11.4-1.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-nodejs8-nodejs-8.11.4-1.el7, rh-nodejs8-nodejs-devel-8.11.4-1.el7, rh-nodejs8-nodejs-docs-8.11.4-1.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs8-nodejs-8.11.4-1.el7, rh-nodejs8-nodejs-devel-8.11.4-1.el7, rh-nodejs8-nodejs-docs-8.11.4-1.el7 +1
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2019:2258 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:2949 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2018:2949 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2018:2949 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:2949 |
Not affected: 2 products
- Red Hat Enterprise Linux 8
- Red Hat OpenShift Enterprise 3
Timeline
- 2026-10-02 Threatist record created from CVE-2018-7159
- 2026-10-03 Alias added: GHSA-87vg-5pwm-8x6w
- 2026-10-08 CISA SSVC decision points changed
References
More NodeJS Node.js vulnerabilities
- TI-2026-79288 Out-of-bounds write in Google Brotli decoder KEVCVSS 4.0CRITICAL 9.2
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2024-03325 Command injection vulnerability in programing languages on Microsoft Windows operating system. CVSS 3.1CRITICAL 9.8
- TI-2022-03472 X.509 Email Address Variable Length Buffer Overflow CVSS 3.1HIGH 7.5
- TI-2022-03315 X.509 Email Address 4-byte Buffer Overflow CVSS 3.1HIGH 7.5
Sources
- CVE-2018-7159 · CVE Program
- CVE-2018-7159 · NVD
- FIRST EPSS
- GHSA-87vg-5pwm-8x6w · GitHub Advisory Database · CC BY 4.0
- CVE-2018-7159 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences