Description
The is_safe_url function in utils/http.py in Django 1.4.x before 1.4.6, 1.5.x before 1.5.2, and 1.6 before beta 2 treats a URL's scheme as safe even if it is not HTTP or HTTPS, which might introduce cross-site scripting (XSS) or other vulnerabilities into Django applications that use this function, as demonstrated by "the login view in django.contrib.auth.views" and the javascript: scheme.
References (13)
Core 13
Core References
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/61777
Third Party Advisory, VDB Entry vdb-entry
x_refsource_sectrack
http://www.securitytracker.com/id/1028915
Mailing List vendor-advisory
x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2013-10/msg00015.html
Patch x_refsource_confirm
https://github.com/django/django/commit/ec67af0bd609c412b76eaa4cc89968a2a8e5ad6a
Vendor Advisory third-party-advisory
x_refsource_secunia
http://secunia.com/advisories/54476
Vendor Advisory vendor-advisory
x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2013-1521.html
Mailing List mailing-list
x_refsource_mlist
http://seclists.org/oss-sec/2013/q3/369
Patch, Vendor Advisory x_refsource_confirm
https://www.djangoproject.com/weblog/2013/aug/13/security-releases-issued
Third Party Advisory, VDB Entry vdb-entry
x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/86437
Patch x_refsource_confirm
https://github.com/django/django/commit/ae3535169af804352517b7fea94a42a1c9c4b762
Patch x_refsource_confirm
https://github.com/django/django/commit/1a274ccd6bc1afbdac80344c9b6e5810c1162b5f
Mailing List mailing-list
x_refsource_mlist
http://seclists.org/oss-sec/2013/q3/411
Third Party Advisory vendor-advisory
x_refsource_debian
http://www.debian.org/security/2013/dsa-2740
Scores
EPSS
0.0412
EPSS Percentile
88.7%
Details
CWE
CWE-79
Status
published
Products (9)
djangoproject/django
1.4
djangoproject/django
1.4.1
djangoproject/django
1.4.2
djangoproject/django
1.4.4
djangoproject/django
1.4.5
djangoproject/django
1.5
djangoproject/django
1.5.1
djangoproject/django
1.6 beta1
pypi/Django
1.4 - 1.4.6PyPI
Published
Oct 04, 2013
Tracked Since
Feb 18, 2026