CVE-2022-21195
HIGH 7.5CVSS 3.1Regular expression denial of service in url_regex
All versions of package url-regex are vulnerable to Regular Expression Denial of Service (ReDoS) which can cause the CPU usage to crash.
- Published
- 20 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-hg3w-7hj9-m3f7
- Sources
- NVDJSONOSV GHSA-hg3w-7hj9-m3f7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | url-regex_project | url-regexcpe:2.3:a:url-regex_project:url-regex:*:*:*:*:*:*:*:* |
all versions | |
| OSV | PyPI | url-regex | <= 1.0.4 |
References
- https://github.com/AlexFlipnote/url_regex/blob/master/url_regex/url_regex.py · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-PYTHON-URLREGEX-2347643 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21195 · ADVISORY
- https://github.com/AlexFlipnote/url_regex · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 20 May 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 May 2022)