Vulnerability
CVE-2021-32052
In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.
15 advisories report this vulnerability, across 5 ecosystems.
Advisories
-
DEBIAN-CVE-2021-32052
In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with…
-
GHSA-qm57-vhq3-3fwf
Header injection possible in Django
-
PYSEC-2021-8
In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with…
-
UBUNTU-CVE-2021-32052
In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with…
-
USN-4975-1
python-django vulnerabilities
-
USN-5373-1
python-django vulnerabilities
-
USN-5373-2
python-django vulnerabilities
-
openSUSE-SU-2023:0005-1
Security update for python-Django
-
openSUSE-SU-2024:11205-1
python36-Django-3.2.7-2.3 on GA media
-
openSUSE-SU-2024:13887-1
python310-Django-4.2.11-2.1 on GA media
-
openSUSE-SU-2024:14208-1
python310-Django4-4.2.14-1.1 on GA media
-
openSUSE-SU-2026:10005-1
python312-Django6-6.0-1.1 on GA media
-
openSUSE-SU-2026:11235-1
python313-Django4-4.2.30-4.1 on GA media
-
openSUSE-SU-2026:11248-1
python313-Django-5.2.16-1.1 on GA media
-
openSUSE-SU-2026:11270-1
python313-Django5-5.2.16-1.1 on GA media
References
- http://www.openwall.com/lists/oss-security/2021/05/06/1
- https://docs.djangoproject.com/en/3.2/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
- https://security.netapp.com/advisory/ntap-20210611-0002/
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/