cve.bz

CVE-2021-32052

6.1 mediumEPSS 3.2%

Medium (6.1). EPSS 3.2% chance of exploitation in the next 30 days. Fixed in django 2.2.22, 3.1.10, 3.2.2.

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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
3.2% chance of exploitation in the next 30 days; higher than 88% of CVEs (scores of 2026-10-31)
CWE
CWE-79
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qm57-vhq3-3fwfPyPIdjango>=2.2 <2.2.222.2.22
GHSA-qm57-vhq3-3fwfPyPIdjango>=3.1 <3.1.103.1.10
GHSA-qm57-vhq3-3fwfPyPIdjango>=3.2 <3.2.23.2.2
PYSEC-2021-8PyPIdjango>=2.2 <2.2.22
>=3.1 <3.1.10
>=3.2 <3.2.2
2.2.22, 3.1.10, 3.2.2

References

Check your stackJSON