PYSEC-2015-5

    Dashboard / Vulnerabilities / PYSEC-2015-5

    PYSEC-2015-5

    Published: 16 Jan 2015Last Modified: 10 Jun 2026

    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.

    Affected packages

    Package

    Name: django

    Purl: pkg:pypi/django

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.4.18

    Affected versions

    1.0.1
    1.0.2
    1.0.3
    1.0.4

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High