CWE
79
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2012-3442: XSS

First published: Tue Jul 31 2012(Updated: )

The (1) `django.http.HttpResponseRedirect` and (2) `django.http.HttpResponsePermanentRedirect` classes in Django before 1.3.2 and 1.4.x before 1.4.1 do not validate the scheme of a redirect target, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via a `data:` URL.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
debian/python-django<=1.4-1<=1.2.3-3+squeeze2
1.4.1-1
1.2.3-3+squeeze3
Djangoproject Django<=1.3
Djangoproject Django=0.95
Djangoproject Django=0.96
Djangoproject Django=1.0
Djangoproject Django=1.0-alpha1
Djangoproject Django=1.0-alpha2
Djangoproject Django=1.0-beta
Djangoproject Django=1.0-beta2
Djangoproject Django=1.0.1
Djangoproject Django=1.0.2
Djangoproject Django=1.1
Djangoproject Django=1.1-alpha1
Djangoproject Django=1.1-beta1
Djangoproject Django=1.1-rc1
Djangoproject Django=1.1.2
Djangoproject Django=1.1.3
Djangoproject Django=1.1.4
Djangoproject Django=1.2
Djangoproject Django=1.2-beta1
Djangoproject Django=1.2-rc1
Djangoproject Django=1.2-alpha1
Djangoproject Django=1.2.2
Djangoproject Django=1.2.4
Djangoproject Django=1.2.5
Djangoproject Django=1.2.6
Djangoproject Django=1.2.7
Djangoproject Django=1.3-alpha1
Djangoproject Django=1.3-beta1
Djangoproject Django=1.4
pip/django>=1.4<1.4.1
1.4.1
pip/django<1.3.2
1.3.2
debian/python-django
1:1.11.29-1~deb10u1
1:1.11.29-1+deb10u9
2:2.2.28-1~deb11u1
2:2.2.28-1~deb11u2
3:3.2.19-1
3:3.2.19-1+deb12u1
3:3.2.20-1.1
3:3.2.21-1

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 severity of CVE-2012-3442?

    The severity of CVE-2012-3442 is classified as medium due to its potential to allow cross-site scripting attacks.

  • How do I fix CVE-2012-3442?

    To fix CVE-2012-3442, upgrade Django to version 1.4.1 or later, or 1.3.2 or later.

  • Which Django versions are affected by CVE-2012-3442?

    Django versions 1.0 through 1.3 and any version before 1.4.1 are affected by CVE-2012-3442.

  • Can CVE-2012-3442 lead to data exposure?

    Yes, CVE-2012-3442 can lead to data exposure through XSS vulnerabilities by allowing malicious scripts to be executed.

  • What components of Django are vulnerable in CVE-2012-3442?

    The vulnerable components in CVE-2012-3442 are `django.http.HttpResponseRedirect` and `django.http.HttpResponsePermanentRedirect`.

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