Advisory

GHSA-78vx-ggch-wghm

Also known as: CVE-2012-3442, PYSEC-2012-2

Summary

Django Allows Redirect via Data URL

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

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-17 05:12 UTC
Modified
2024-11-26 05:26 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.2 (ecosystem)

Fixed versions

1.3.2

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.4, fixed 1.4.1 (ecosystem)

Fixed versions

1.4.1

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences