Advisory

GHSA-7fq8-4pv5-5w5c

Also known as: CVE-2015-2317, PYSEC-2015-9

Summary

Django cross-site scripting (XSS) attack via user-supplied redirect URLs

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-14 02:06 UTC
Modified
2024-09-18 16:08 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.20 (ecosystem)

Fixed versions

1.4.20

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.5, fixed 1.6.11 (ecosystem)

Fixed versions

1.6.11

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.7, fixed 1.7.7 (ecosystem)

Fixed versions

1.7.7

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.8a1, fixed 1.8c1 (ecosystem)

Fixed versions

1.8c1

Fix

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

Sources & licences