Skip to content
OpenAdvisories
Medium · 6.1 CVE-2012-3442 EUVD-2012-0003GHSA-78vx-ggch-wghmPYSEC-2012-2

Django Allows Redirect via Data URL

Published Jul 31, 2012 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 1.4.1-1 —
Debian 13 python-django 1.4.1-1 —
Debian 12 python-django 1.4.1-1 —
Debian 6.0 python-django 1.2.3-3+squeeze3 DSA-2529-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.3.2 1.3.2 GHSA-78vx-ggch-wghm
PyPI django >= 1.4, < 1.4.1 1.4.1 GHSA-78vx-ggch-wghm
PyPI django < 1.3.2 · >= 1.4, < 1.4.1 1.3.2, 1.4.1 PYSEC-2012-2

Advisories 1

References