nodejs: HTTP parser allowed for spaces inside Content-Length header values
Published May 17, 2018
5.3
MEDIUMCVSS 3.1
EPSS 3.56%
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.
Affected products
-
- Version 4.xStatusaffectedConstraints-
- Version 6.xStatusaffectedConstraints-
- Version 8.xStatusaffectedConstraints-
- Version 9.xStatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| The Node.js Project | Node.js | n/a |
|
- ≥ 4.0.0 · ≤ 4.1.2
- ≥ 4.2.0 · < 4.9.0
- ≥ 6.0.0 · ≤ 6.8.1
- ≥ 6.9.0 · < 6.14.0
- ≥ 8.0.0 · ≤ 8.8.1
- ≥ 8.9.0 · < 8.11.0
- ≥ 9.0.0 · < 9.10.0
No data.
Red Hat Enterprise Linux 7
http-parser-0:2.7.1-8.el7
Fixed · RHSA-2019:2258
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-nodejs8-nodejs-0:8.11.4-1.el7
Fixed · RHSA-2018:2949
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-nodejs8-nodejs-0:8.11.4-1.el7
Fixed · RHSA-2018:2949
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-nodejs8-nodejs-0:8.11.4-1.el7
Fixed · RHSA-2018:2949
Red Hat Enterprise Linux 8
http-parser
Not affected
Red Hat Enterprise Linux 8
nodejs
Not affected
Red Hat OpenShift Enterprise 3
nodejs
Not affected
Red Hat Software Collections
rh-nodejs4-nodejs
Will not fix
Red Hat Software Collections
rh-nodejs6-nodejs
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | http-parser-0:2.7.1-8.el7 | Fixed | RHSA-2019:2258 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs8-nodejs-0:8.11.4-1.el7 | Fixed | RHSA-2018:2949 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-nodejs8-nodejs-0:8.11.4-1.el7 | Fixed | RHSA-2018:2949 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-nodejs8-nodejs-0:8.11.4-1.el7 | Fixed | RHSA-2018:2949 |
| Red Hat Enterprise Linux 8 | http-parser | Not affected | n/a |
| Red Hat Enterprise Linux 8 | nodejs | Not affected | n/a |
| Red Hat OpenShift Enterprise 3 | nodejs | Not affected | n/a |
| Red Hat Software Collections | rh-nodejs4-nodejs | Will not fix | n/a |
| Red Hat Software Collections | rh-nodejs6-nodejs | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (17 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.56% (0.03565) | 88.97th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.62% (0.03621) | 88.00th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.14% (0.00142) | 50.44th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.14% (0.00142) | 49.79th | v3 (v2023.03.01) |
| Oct 8, 2023 | 0.13% (0.00129) | 47.13th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.11% (0.00113) | 43.86th | v3 (v2023.03.01) |
| May 11, 2023 | 0.21% (0.00207) | 57.28th | v3 (v2023.03.01) |
| May 8, 2023 | 0.20% (0.00198) | 56.15th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.11% (0.00108) | 42.00th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.95% (0.00954) | 36.37th | v2 (v2022.01.01) |
| Sep 2, 2022 | 0.95% (0.00954) | 34.50th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.95% (0.00954) | 32.50th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.95% (0.00954) | 16.28th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.83% (0.00833) | 24.58th | v1 |
| Jan 6, 2022 | 0.83% (0.00833) | 23.96th | v1 |
| Sep 1, 2021 | 0.83% (0.00833) | 57.50th | v1 |
| Apr 14, 2021 | 0.83% (0.00833) | 0.00th | v1 |
References (7)
- https://access.redhat.com/errata/RHSA-2019:2258 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-7159 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1561981 Issue Tracking
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/ x_refsource_CONFIRMVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-7159
- https://support.f5.com/csp/article/K27228191?utm_source=f5support&%3Butm_medium=RSS x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2018-7159
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2019:2258 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2018-7159 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1561981 | Issue Tracking | |
| https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/ | x_refsource_CONFIRMVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-7159 | ||
| https://support.f5.com/csp/article/K27228191?utm_source=f5support&%3Butm_medium=RSS | x_refsource_CONFIRM | |
| https://www.cve.org/CVERecord?id=CVE-2018-7159 |
Change history (0)
No recorded changes yet.