Advisory

PYSEC-2015-9

Also known as: CVE-2015-2317, GHSA-7fq8-4pv5-5w5c

Summary

The record has no summary.

Details

The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \x08javascript: URL.

Severity

Not rated by the source.

Dates

Published
2015-03-25 14:59 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.20, introduced 1.5, fixed 1.6.11, introduced 1.7, fixed 1.7.7, introduced 1.8a0, fixed 1.8c1 (ecosystem)

Fixed versions

1.4.20, 1.6.11, 1.7.7, 1.8c1

Fix

  • Fixed version 1.4.20
    pip install --upgrade django==1.4.20
  • Fixed version 1.6.11
    pip install --upgrade django==1.6.11
  • Fixed version 1.7.7
    pip install --upgrade django==1.7.7
  • Fixed version 1.8c1
    pip install --upgrade django==1.8c1

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