CVE-2021-32052: XSS

Published May 6, 2021
·
Updated

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.

Affected Software

12 affected componentsFixes available
pip/Django>=3.2<3.2.2
3.2.2
pip/Django>=3.1<3.1.10
3.1.10
pip/Django>=2.2<2.2.22
2.2.22
All of the following
Any of the following
djangoproject Django>=2.2<2.2.22
djangoproject Django>=3.1<3.1.10
djangoproject Django>=3.2<3.2.2
Python Python>=3.9.5
Fedoraproject Fedora=34
djangoproject Django>=2.2<2.2.22
djangoproject Django>=3.1<3.1.10
djangoproject Django>=3.2<3.2.2
Python Python>=3.9.5

Event History

May 6, 2021
CVE Published
via MITRE·03:49 PM
Data Sourced
via MITRE·03:49 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 9, 2021
Advisory Published
via GitHub·05:14 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this Django vulnerability?

The vulnerability ID for this Django vulnerability is CVE-2021-32052.

2

What is the severity of CVE-2021-32052?

The severity of CVE-2021-32052 is medium with a CVSS score of 6.1.

3

What is the affected software for CVE-2021-32052?

The affected software for CVE-2021-32052 includes Django versions 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+).

4

How does CVE-2021-32052 impact applications?

CVE-2021-32052 can lead to header injection if an application uses values with newlines in an HTTP response.

5

Where can I find more information about CVE-2021-32052?

You can find more information about CVE-2021-32052 in the references provided: [Reference 1](http://www.openwall.com/lists/oss-security/2021/05/06/1), [Reference 2](https://docs.djangoproject.com/en/3.2/releases/security/), [Reference 3](https://groups.google.com/forum/#!forum/django-announce).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203