7.5

CVE-2018-7158: nodejs node.js Incorrect Regular Expression

Modified
AliasesALPINE-CVE-2018-7158UBUNTU-CVE-2018-7158DEBIAN-CVE-2018-7158
Published 17-05-2018Last modified 08-10-2026

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.

Priority
Prioritisesevere

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?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
3.39%
0%100%
Low · -0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 3

Timeline

  1. 17-05-2018
    PublishedVulnerability first disclosed.
  2. 08-10-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Ubuntu1 product
  • nodejsAll versions (No fix recorded)

5 vendors · 6 products

References

5 links