# CVE-2021-23343: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.22%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-05-04T08:25:17.431Z
- Modified: 2026-06-17T03:38:35.530Z
- Also known as: GHSA-hj48-42vr-x3v9
- Weaknesses: CWE-400
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- path-parse: before unspecified
- path-parse (npm): before 1.0.7
- path-parse_project path-parse: before 1.0.7

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-PATHPARSE-1077067> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279028> (exploit, third-party-advisory, web)
- <https://github.com/jbgutierrez/path-parse/issues/8> (exploit, issue-tracking, third-party-advisory, web)
- <https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85%40%3Cdev.myfaces.apache.org%3E> (mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23343> (advisory)
- <https://github.com/jbgutierrez/path-parse/pull/10> (web)
- <https://github.com/jbgutierrez/path-parse/commit/eca63a7b9a473bf6978a2f5b7b3343662d1506f7> (web)
- <https://github.com/jbgutierrez/path-parse> (package)
- <https://lists.apache.org/thread.html/r6a32cb3eda3b19096ad48ef1e7aa8f26e005f2f63765abb69ce08b85@%3Cdev.myfaces.apache.org%3E> (web)

## Sources

- CVE List: [CVE-2021-23343](https://www.cve.org/CVERecord?id=CVE-2021-23343), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hj48-42vr-x3v9](https://github.com/advisories/GHSA-hj48-42vr-x3v9), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23343](https://nvd.nist.gov/vuln/detail/CVE-2021-23343), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23343 · Whole record: https://cve.day/CVE-2021-23343.json · Rebuilt by cve.day 2026-11-25T22:58:01.134Z
