Back
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…
Medium6.1EPSS 3.2%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 3.2% · top 12% of all CVEs (7 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIDjangoGHSA-qm57-vhq3-3fwf (opens in a new tab)
References (6)
- https://groups.google.com/forum/#%21forum/django-announce (opens in a new tab)x_refsource_MISCx_transferred
- https://docs.djangoproject.com/en/3.2/releases/security/ (opens in a new tab)x_refsource_MISCx_transferred
- http://www.openwall.com/lists/oss-security/2021/05/06/1 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/ (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2021-01044b8a59 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://security.netapp.com/advisory/ntap-20210611-0002/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-qm57-vhq3-3fwf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2021-32052)Record last updated .