CVE catalog

CVE-2018-7159

nodejs: CVE-2018-7159

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
3.56% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannodejssid24.22.1+dfsg+~cs24.19.2-1fixed
Debiannodejsforky24.21.0+dfsg+~cs24.13.4-1fixed
Debiannodejstrixie20.19.2+dfsg-1+deb13u2fixed
Debiannodejstrixie-security20.19.2+dfsg-1+deb13u3fixed
Debiannodejsbookworm18.20.4+dfsg-1~deb12u2fixed
Debiannodejsbookworm-security18.20.4+dfsg-1~deb12u3fixed
Cpenode.jsNot reported9.10.0fixed
Alpinenodejs3.108.11.0-r0fixed
Alpinenodejs3.118.11.0-r0fixed
Alpinenodejs3.128.11.0-r0fixed
Alpinenodejs3.138.11.0-r0fixed
Alpinenodejs3.148.11.0-r0fixed
Alpinenodejs3.158.11.0-r0fixed
Alpinenodejs3.168.11.0-r0fixed
Alpinenodejs3.178.11.0-r0fixed
Alpinenodejs3.188.11.0-r0fixed
Alpinenodejs3.198.11.0-r0fixed
Alpinenodejs3.208.11.0-r0fixed
Alpinenodejs3.218.11.0-r0fixed
Alpinenodejs3.228.11.0-r0fixed
Alpinenodejs3.238.11.0-r0fixed
Alpinenodejs3.248.11.0-r0fixed
Alpinenodejs3.88.11.0-r0fixed
Alpinenodejs3.98.11.0-r0fixed
Ubuntunodejspro6.11.4~dfsg-1ubuntu1vulnerable
Ubuntunodejspro6.11.4~dfsg-1ubuntu2vulnerable
Ubuntunodejspro6.12.0~dfsg-1ubuntu1vulnerable
Ubuntunodejspro6.12.0~dfsg-2ubuntu1vulnerable
Ubuntunodejspro6.12.0~dfsg-2ubuntu2vulnerable
Ubuntunodejspro8.10.0~dfsg-2vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.2vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.3vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4+esm1vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4+esm2vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4+esm3vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4+esm4vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4+esm5vulnerable
Ubuntunodejspro8.10.0~dfsg-2ubuntu0.4+esm6vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannodejssourcesid8.11.1~dfsg-2unimportantNot reportedNot reported
Debiannodejssourceforky8.11.1~dfsg-2unimportantNot reportedNot reported
Debiannodejssourcetrixie8.11.1~dfsg-2unimportantNot reportedNot reported
Debiannodejssourcebookworm8.11.1~dfsg-2unimportantNot reportedNot reported
Cpenode.jscpeNot reported9.10.0Not reportedNVD-CVE-2018-7159Not reported
Alpinenodejsapk3.108.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.118.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.128.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.138.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.148.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.158.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.168.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.178.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.188.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.198.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.208.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.218.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.228.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.238.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.248.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.88.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported
Alpinenodejsapk3.98.11.0-r0Not reportedALPINE-CVE-2018-7159Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libnode108]Unknown

    Source package: [nodejs]

    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

  • [libnode-dev]Unknown

    Source package: [nodejs]

    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

  • [nodejs]Unknown
    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

  • [nodejs-doc]Unknown

    Source package: [nodejs]

    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · all · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · all · bookworm

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · all · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · all · bookworm-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

[Debian 13 (Trixie)]

  • [libnode115]Unknown

    Source package: [nodejs]

    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

  • [libnode-dev]Unknown

    Source package: [nodejs]

    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

  • [nodejs]Unknown
    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

  • [nodejs-doc]Unknown

    Source package: [nodejs]

    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · all · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · all · trixie

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · all · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · all · trixie-security · Historical version

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · all · trixie-security

      Fixed · Fixed: 8.11.1~dfsg-2

      dsa · nodejs · debian · 13

Observed:

References