Reference page — cumulative record through Monday, October 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
CVE-2018-7158
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector.
AV AC PR UI S C I A CVSS EPSS %ile KEV
N L N N U N N H 7.5 .0341 88.7 —
AFFECTED
Product Versions Fixed
Node.js 4.x – —
TIMELINE
Feb 15 Reserved by nodejs
May 17 Published (CNA: nodejs)
Oct 8 ENRICHED — CVE-2018-7158 (The Node.js Project Node.js). Received CVSS 7.5 and CPE data from NVD.
Description
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.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| February 15, 2018 | Reserved | Reserved by nodejs |
| May 17, 2018 | Published | Published (CNA: nodejs) |
| October 8, 2026 | ENRICHED | ENRICHED — CVE-2018-7158 (The Node.js Project Node.js). Received CVSS 7.5 and CPE data from NVD. |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| The Node.js Project | Node.js | — | 4.x | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2018-7158 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Monday, October 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.