Skip to main content
← All vulnerabilities
CVE-2015-0220PYSEC-2015-5GHSA-GV98-G628-M9X5

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 lead

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.4.18, 1.6.10, 1.7.3
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    fixed in 1.4.18; From 1.5 · fixed in 1.6.10; From 1.7 · fixed in 1.7.3

  • djangoPyPI

    fixed in 1.4.18

  • djangoPyPI

    From 1.6 · fixed in 1.6.10

  • djangoPyPI

    From 1.7 · fixed in 1.7.3

References 12

secunia.com

lists.fedoraproject.org

ubuntu.com

mandriva.com

lists.opensuse.org

djangoproject.com

advisories.mageia.org