Disclosure summary
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.
Source-reported weakness categories
CWE-185, NVD-CWE-Other
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
NIST National Vulnerability Database · NVD-CVE-2018-7158
Open original source · Updated Oct 08, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
| Vendor | Product / association | Version / bounds |
|---|---|---|
| nodejs | node.js | * {"versionStartIncluding":"4.0.0","versionEndIncluding":"4.1.2"} |
| nodejs | node.js | * {"versionStartIncluding":"4.2.0","versionEndIncluding":"4.9.1"} |
Original records & references
- NIST NVD record
- CVE Program record
- nodejs.org — Vendor Advisory
- nodejs.org — Vendor Advisory
PUBLISHED 2018-05-17T10:29:00-04:00
MODIFIED 2026-10-08T18:16:47-04:00
INGESTED 2026-10-10T20:50:18-04:00