Advisory

PYSEC-2015-5

Also known as: CVE-2015-0220, GHSA-gv98-g628-m9x5

Summary

The record has no summary.

Details

The django.util.http.is_safe_url function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a "\njavascript:" URL.

Severity

Not rated by the source.

Dates

Published
2015-01-16 16:59 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.18, introduced 1.5, fixed 1.6.10, introduced 1.7, fixed 1.7.3 (ecosystem)

Fixed versions

1.4.18, 1.6.10, 1.7.3

Fix

  • Fixed version 1.4.18
    pip install --upgrade django==1.4.18
  • Fixed version 1.6.10
    pip install --upgrade django==1.6.10
  • Fixed version 1.7.3
    pip install --upgrade django==1.7.3

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