CVE-2013-6044
MEDIUM 4.3CVSS 2.0Django cross-site scripting (XSS) vulnerability via is_safe_url function
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.
- Published
- 4 Oct 2013
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-9cwg-mhxf-hh59PYSEC-2013-21
- Sources
- NVDJSONOSV GHSA-9cwg-mhxf-hh59JSONOSV PYSEC-2013-21JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:* |
= 1.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:* |
= 1.4.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4.2:*:*:*:*:*:*:* |
= 1.4.2 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4.4:*:*:*:*:*:*:* |
= 1.4.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.4.5:*:*:*:*:*:*:* |
= 1.4.5 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.5:*:*:*:*:*:*:* |
= 1.5 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.5.1:*:*:*:*:*:*:* |
= 1.5.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6:beta1:*:*:*:*:*:* |
= 1.6 | |
| OSV | PyPI | django | >= 1.4, < 1.4.6 | 1.4.6 |
| OSV | PyPI | django | >= 1.5, < 1.5.2 | 1.5.2 |
| OSV | PyPI | django | >= 1.4, < 1.4.6; >= 1.5, < 1.5.2 | 1.4.6, 1.5.2 |
References
- http://lists.opensuse.org/opensuse-updates/2013-10/msg00015.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-1521.html · WEB, ADVISORY
- http://seclists.org/oss-sec/2013/q3/369 · WEB
- http://seclists.org/oss-sec/2013/q3/411 · WEB
- http://secunia.com/advisories/54476 · Vendor Advisory, ADVISORY
- http://www.debian.org/security/2013/dsa-2740 · WEB, ADVISORY
- http://www.securityfocus.com/bid/61777 · WEB
- http://www.securitytracker.com/id/1028915 · WEB
- https://exchange.xforce.ibmcloud.com/vulnerabilities/86437 · WEB
- https://github.com/django/django/commit/1a274ccd6bc1afbdac80344c9b6e5810c1162b5f · WEB, FIX
- https://github.com/django/django/commit/ae3535169af804352517b7fea94a42a1c9c4b762 · WEB, FIX
- https://github.com/django/django/commit/ec67af0bd609c412b76eaa4cc89968a2a8e5ad6a · WEB, FIX
- https://www.djangoproject.com/weblog/2013/aug/13/security-releases-issued · Patch, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2013-6044 · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2013-21.yaml · WEB
- https://github.com/advisories/GHSA-9cwg-mhxf-hh59 · ADVISORY
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 4 Oct 2013)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Oct 2013)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2022)