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 (87.5th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 87.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-32052: held from 0.032 to 0.032.

EPSS over last 30 days · oldest: 0.032 · newest: 0.032 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-32052?
CVE-2021-32052 is a medium-severity vulnerability in Djangoproject Django, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2021-05-06.
How severe is CVE-2021-32052?
Medium severity. CVSS v3 base score is 6.1 out of 10.
Is CVE-2021-32052 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.