CVE-2021-32052
Severity CVSS v4.0:
Pending analysis
Type:
CWE-79
Cross-Site Scripting (XSS)
Publication date:
06/05/2021
Last modified:
07/11/2023
Description
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.
Impact
Base Score 3.x
6.10
Severity 3.x
MEDIUM
Base Score 2.0
4.30
Severity 2.0
MEDIUM
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 2.2 (including) | 2.2.22 (excluding) |
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 3.1 (including) | 3.1.10 (excluding) |
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 3.2 (including) | 3.2.2 (excluding) |
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | 3.9.5 (including) | |
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- 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/