# CVE-2018-7158: Node.js 4: Incorrect Regular Expression

CVE-2018-7158 has no fix on record yet for 1 affected product. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2018-7158
- Priority: High
- CVSS: 7.5
- EPSS: 0.0345
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 17, 2018
- Weakness: CWE-185: Incorrect Regular Expression
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-7158

## 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.

## Where it's fixed

No fix is on record.

## No fix yet

| Platform | Product | Status |
|---|---|---|
| Windows apps | Node.js 4 | no-fix |

---

Data as of 2026-11-07T12:40:37Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
