Advisory

GHSA-gv98-g628-m9x5

Also known as: CVE-2015-0220, PYSEC-2015-5

Summary

Django Cross-site Scripting Vulnerability

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 03:20 UTC
Modified
2025-02-19 05:37 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.18 (ecosystem)

Fixed versions

1.4.18

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.6, fixed 1.6.10 (ecosystem)

Fixed versions

1.6.10

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.7, fixed 1.7.3 (ecosystem)

Fixed versions

1.7.3

Fix

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

Sources & licences