Home / The Node.js Project / Node.js / CVE-2018-7158
CVE-2018-7158: is it exploited, and which versions of The Node.js Project Node.js are affected and fixed?
CVE-2018-7158 is an incorrect Regular Expression vulnerability in The Node.js Project Node.js. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: Node.js 4.x (CVE record by nodejs). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:32 UTC.
What is CVE-2018-7158?
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.
From the CVE record by nodejs, last updated October 8, 2026, 21:14 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| The Node.js Project | Node.js | 4.x |
As the CVE record by nodejs states it, last updated October 8, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nodejs | node.js | from 4.0.0 through 4.1.2 | application |
| nodejs | node.js | from 4.2.0 through 4.9.1 | application |
NVD analysis (status Modified), last modified October 8, 2026, 22:16 UTC.
How severe is CVE-2018-7158?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-7158 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 8, 2026)
- EPSS
- 3.45% probability of exploitation activity in the next 30 days, percentile 89.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-185 Incorrect Regular Expression
Where are the vendor advisories and references?
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/ x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- February 15, 2018
- Published
- May 17, 2018, 14:00 UTC
- CVE record updated
- October 8, 2026, 21:14 UTC by nodejs
- NVD
- Modified, last modified October 8, 2026, 22:16 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:32 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Node.js?
- Nov 28, 2018CVE-2018-12123 The Node.js Project Node.js: misinterpretation of Input
- Nov 28, 2018CVE-2018-12122 The Node.js Project Node.js: denial of service (uncontrolled resource consumption)
- Nov 28, 2018CVE-2018-12121 The Node.js Project Node.js: denial of service (uncontrolled resource consumption)
- Nov 28, 2018CVE-2018-12120 The Node.js Project Node.js: unprotected Primary Channel
- Nov 28, 2018CVE-2018-12116 The Node.js Project Node.js: misinterpretation of Input
- Aug 21, 2018CVE-2018-12115 The Node.js Project Node.js: out-of-bounds write (memory corruption)
- Aug 21, 2018CVE-2018-7166 The Node.js Project Node.js: sensitive Information in Resource Not Removed Before Reuse
- Jun 13, 2018CVE-2018-7167 The Node.js Project Node.js: memory corruption (buffer overflow)
Questions about CVE-2018-7158
Is CVE-2018-7158 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 3.45% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of The Node.js Project Node.js are affected by CVE-2018-7158?
Node.js 4.x, per the CVE record by nodejs. The tables above give every range the sources list.
Which version fixes CVE-2018-7158?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2018-7158?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-7158?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.