boxscore/security
CVE · referencelatest edition

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.
CWE-185 · CNA: nodejs · CVSS v3.1 · 1 reference · NVD status: Modified

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
DateEventDetail
February 15, 2018ReservedReserved by nodejs
May 17, 2018PublishedPublished (CNA: nodejs)
October 8, 2026ENRICHEDENRICHED — 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
VendorProduct / PackageEcosystemVersion introducedFixed
The Node.js ProjectNode.js—4.x—

Weaknesses

CWE-185

References (1)

Related

Authoritative record: CVE-2018-7158 at cve.org

Vendors: the node.js project

Weaknesses: CWE-185

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.