Django has regular expression denial of service vulnerability in EmailValidator/URLValidator
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
4.2.3In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.
From the CVE record · mitre
Django’s EmailValidator and URLValidator are vulnerable to potential regular expression denial of service when processing email addresses or URLs with a very large number of domain name labels. An attacker who can supply such input may trigger the issue; the input does not specify authentication or user-interaction requirements.
Teams running the PyPI django package should check 3.2 releases before 3.2.20, 4.0 and 4.1 releases before 4.1.10, and 4.2 releases before 4.2.3, including affected prereleases.