CVE-2018-7158: nodejs node.js Incorrect Regular Expression
Vulnerability summary
CVE-2018-7158 is a high (CVSS 7.5) Incorrect Regular Expression vulnerability in nodejs node.js. EPSS estimates a 3.39% chance of exploitation in the next 30 days, higher than 88.8% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 17-05-2018PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
3.39%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
Decrease -0.02 pp
From 3.41% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine2 products
- nodejs< 8.11.0-r0
- nodejs-current< 9.10.0-r0
Debian1 product
- nodejs< 6.0.0~dfsg-1
Nodejs1 product
- node.js≥ 4.0.0, ≤ 4.1.2 | ≥ 4.2.0, ≤ 4.9.1
The node.js project1 product
- node.js≥ 4.0, < 5.0
Ubuntu1 product
- nodejsAll versions (No fix recorded)
5 vendors · 6 products