CWE
79 88
Advisory Published
Advisory Published
Updated

CVE-2021-32052: XSS

First published: Thu May 06 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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
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
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
Any of
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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID for this Django vulnerability?

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

  • What is the severity of CVE-2021-32052?

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

  • 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+).

  • 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.

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203