Skip to main content
No exploitation reportedFix available

CVE-2021-32052

No exploitation reported by the sources we read.

  • Published2021-05-06
  • Fixed in3.2.2 · 3.1.10 · 2.2.22
  • WeaknessCWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-05-0616:15CVE publishedNVD

Versions per branch

NVD · OSV
Djangoversion to verify
BranchAffectedFixed in
3.2≥ 3.2, < 3.2.23.2.2
3.2≥ 3.2.0, < 3.2.23.2.2
3.1≥ 3.1, < 3.1.103.1.10
3.1≥ 3.1.0, < 3.1.103.1.10
2.2≥ 2.2, < 2.2.222.2.22
2.2≥ 2.2.0, < 2.2.222.2.22
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • python-djangoUbuntu:Pro:16.04:LTSall versions · fixed in 1.8.7-1ubuntu5.15+esm5
  • python-djangoUbuntu:Pro:14.04:LTSall versions · fixed in 1.6.11-0ubuntu1.3+esm5
  • python-djangoUbuntu:20.04:LTSall versions · fixed in 2:2.2.12-1ubuntu0.7
  • python-djangoUbuntu:20.04:LTSall versions · fixed in 2:2.2.12-1ubuntu0.11
  • python-djangoUbuntu:18.04:LTSall versions · fixed in 1:1.11.11-1ubuntu1.17
  • python-djangoUbuntu:18.04:LTSall versions · fixed in 1:1.11.11-1ubuntu1.14
  • python-djangoMageia:8all versions · fixed in 3.1.13-1.mga8
  • python-djangoDebian:14all versions · fixed in 2:2.2.22-1

10 more package ranges on OSV.dev

Full record on NVD

Fix

  1. Update Django to 3.2.2 · 3.1.10 · 2.2.22

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.16.1read 2026-10-23
  • NVDCVSS 2.04.3read 2026-10-23
  • NVDweakness (CWE)CWE-79read 2026-10-23
  • FIRST EPSSEPSS score3.2 %2026-11-17
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2021-05-19

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2021-05-06
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-qm57-vhq3-3fwf

Frequently asked questions

What is 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.

Is CVE-2021-32052 actively exploited?

Active exploitation of CVE-2021-32052 has not been confirmed. Its EPSS score was 3.2% on 2026-11-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-32052?

CVE-2021-32052 has a CVSS v3 base score of 6.1 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running Django? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record