CVE-2018-7158
mediumpriority · track · 31EPSS 0.034 · 89 %ileEUUSEPSS · scored 2026-10-27
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2019.4645/cnnvd
- https://www.suse.com/support/update/announcement/2019/suse-su-201914246-1.htmlcnnvd
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/enisa_euvd
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan