# CVE-2022-21195: 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): 1.36%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-05-20T20:00:14.033Z
- Modified: 2026-06-17T04:25:43.260Z
- Also known as: GHSA-hg3w-7hj9-m3f7
- Weaknesses: CWE-1333
- Assigned by: snyk

## Description

All versions of package url-regex are vulnerable to Regular Expression Denial of Service (ReDoS) which can cause the CPU usage to crash.

(As written by CVE List.)

## Affected

- url-regex: before unspecified
- url-regex (PyPI): up to 1.0.4
- url-regex_project url-regex: no versions given

## 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-PYTHON-URLREGEX-2347643> (exploit, third-party-advisory, web)
- <https://github.com/AlexFlipnote/url_regex/blob/master/url_regex/url_regex.py> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21195> (advisory)
- <https://github.com/AlexFlipnote/url_regex> (package)

## Sources

- CVE List: [CVE-2022-21195](https://www.cve.org/CVERecord?id=CVE-2022-21195), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hg3w-7hj9-m3f7](https://github.com/advisories/GHSA-hg3w-7hj9-m3f7), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2022-21195](https://nvd.nist.gov/vuln/detail/CVE-2022-21195), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21195 · Whole record: https://cve.day/CVE-2022-21195.json · Rebuilt by cve.day 2026-11-25T22:58:11.856Z
