medium5.3
CVE-2021-23343
Regular Expression Denial of Service in path-parse
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | path-parse | < 1.0.7 | 1.0.7 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Path-Parse Project | Path-Parse | before 1.0.7 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- 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/advisories/GHSA-hj48-42vr-x3v9
- https://nvd.nist.gov/vuln/detail/CVE-2021-23343
- https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85@%3Cdev.myfaces.apache.org%3E
- https://github.com/jbgutierrez/path-parse/pull/10
- https://github.com/jbgutierrez/path-parse/commit/eca63a7b9a473bf6978a2f5b7b3343662d1506f7