CVEMETERBack to radar
OFFICIAL RECORD · Node.js

CVE-2018-7158

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.5 · high

Node.js · 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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 3.452% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 7.5 · published by [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T10:05:58.109Z

CVSS 2.0 · 5 · published by [email protected]
AV:N/AC:L/Au:N/C:N/I:N/A:P
Assessment source · checked 2026-11-19T10:05:58.109Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T15:55:09.885ZCISA KEV
cvssverified2026-11-19T10:05:58.109ZNVD
epssverified2026-11-19T16:04:25.255ZFIRST EPSS
patchesunknownunknownunknown
affectedverified2026-11-19T10:45:28.233ZCVE Program
lifecycleverified2026-11-19T10:45:28.233ZCVE Program

Affected versions and configuration

The Node.js Project Node.js; default status: unknown: 4.x [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "The Node.js Project",
      "product": "Node.js",
      "versions": [
        {
          "status": "affected",
          "version": "4.x"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-05T06:24:10.491Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2018-7158",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-10-08T21:12:07.334801Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-10-08T21:14:05.296Z"
      }
    }
  ]
}
Archived source JSON
NVD · nvd-cpe · full conditions
[
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "A47FC4F7-1F77-4314-B4B3-3C5D8E335379",
            "versionEndIncluding": "4.1.2",
            "versionStartIncluding": "4.0.0"
          },
          {
            "criteria": "cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "3B6B4F5F-D4EB-467D-83E3-A8C2A9ECF5FA",
            "versionEndIncluding": "4.9.1",
            "versionStartIncluding": "4.2.0"
          }
        ],
        "operator": "OR"
      }
    ]
  }
]
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history