{"id":"CVE-2018-7158","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-7158","generatedAt":"2026-10-29T03:57:56.063Z","title":"The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector.","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.","published":"2018-05-17T14:29:01.000Z","lastModified":"2026-10-08T22:16:47.000Z","status":"Modified","sourceIdentifier":"cve-request@iojs.org","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"cwe":["CWE-185"],"affected":["nodejs/node.js"],"epss":{"score":0.03386,"percentile":0.8875,"date":"2026-10-28","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (3.39%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/","tags":["Vendor Advisory"],"source":"cve-request@iojs.org"},{"url":"https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-7158","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}