XSS in Djangoproject Django
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.032, 88.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Djangoproject Django
- Fedoraproject Fedora — versions 34
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- groups.google.com/forum/
- docs.djangoproject.com/en/3.2/releases/security/ (Patch, Vendor Advisory)
- www.openwall.com/lists/oss-security/2021/05/06/1 (Patch, Mailing List, Third Party Advisory)
- www.djangoproject.com/weblog/2021/may/06/security-releases/ (Patch, Vendor Advisory)
- FEDORA-2021-01044b8a59 (vendor-advisory)
- security.netapp.com/advisory/ntap-20210611-0002/ (Third Party Advisory)