{"id":"ALPINE-CVE-2018-7159","details":"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.","modified":"2025-12-03T22:43:51.085845Z","published":"2018-05-17T14:29:00.653Z","upstream":["CVE-2018-7159"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2018-7159"}],"affected":[{"package":{"name":"nodejs","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0-r0"}]}],"versions":["4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-7159.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}