{"id":"CVE-2021-23343","aliases":["CVE-2021-23343","GHSA-hj48-42vr-x3v9"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.","source":"cvelist"},{"lang":"en","text":"Affected versions of npm package `path-parse` are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Todas las versiones del paquete path-parse son vulnerables a una Denegación de Servicio de Expresiones Regulares (ReDoS) por medio de las expresiones regulares splitDeviceRe, splitTailRe y splitPathRe.&#xa0;ReDoS exhibe complejidad de tiempo polinomial en el peor de los casos","source":"nvd"}],"published":"2021-05-04T08:25:17.431Z","modified":"2026-06-17T03:38:35.530Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"path-parse","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.7"}],"ecosystem":"npm","package":"path-parse","purl":"pkg:npm/path-parse","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.7"}],"vendor":"path-parse_project","product":"path-parse","cpe":"cpe:2.3:a:path-parse_project:path-parse:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PATHPARSE-1077067","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279028","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jbgutierrez/path-parse/issues/8","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85%40%3Cdev.myfaces.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23343","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jbgutierrez/path-parse/pull/10","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jbgutierrez/path-parse/commit/eca63a7b9a473bf6978a2f5b7b3343662d1506f7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jbgutierrez/path-parse","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85@%3Cdev.myfaces.apache.org%3E","tags":["web"],"sources":["ghsa"]}],"credits":["Yeting Li"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23343","url":"https://www.cve.org/CVERecord?id=CVE-2021-23343","licence":"CVE Terms of Use","modified":"2024-09-16T22:14:48.595Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hj48-42vr-x3v9","url":"https://github.com/advisories/GHSA-hj48-42vr-x3v9","licence":"CC-BY-4.0","modified":"2025-01-14T08:57:22.791Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23343","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23343","licence":"Public domain","modified":"2026-06-17T03:38:35.530Z"}],"updatedAt":"2026-11-25T22:58:01.134Z","epss":{"score":0.02218,"percentile":0.83166,"date":"2026-12-01T12:00:22.000Z"}}