What’s Vulnerable › Vulnerabilities
CVE-2021-23343: Regular Expression Denial of Service (ReDoS)
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-05-04 · updated 2026-06-17
Description
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.
Affected products
- path-parse: before 1.0.7 — fixed in 1.0.7
- Npm Path-Parse: before 1.0.7 — fixed in 1.0.7
How to fix
Upgrade to a fixed version: path-parse 1.0.7; Npm Path-Parse 1.0.7. Check the vendor advisory for mitigations.
References
- https://github.com/jbgutierrez/path-parse/issues/8
- https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85%40%3Cdev.myfaces.apache.org%3E
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279028
- https://snyk.io/vuln/SNYK-JS-PATHPARSE-1077067
- https://github.com/jbgutierrez/path-parse/issues/8
- https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85%40%3Cdev.myfaces.apache.org%3E
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279028
- https://snyk.io/vuln/SNYK-JS-PATHPARSE-1077067
Get alerted when CVE-2021-23343 or the next vulnerability affects your stack