Advisory

PYSEC-2012-2

Also known as: CVE-2012-3442, GHSA-78vx-ggch-wghm

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2012-07-31 17:55 UTC
Modified
2026-06-10 17:00 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.2, introduced 1.4, fixed 1.4.1 (ecosystem)

Fixed versions

1.3.2, 1.4.1

Fix

  • Fixed version 1.3.2
    pip install --upgrade django==1.3.2
  • Fixed version 1.4.1
    pip install --upgrade django==1.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences