The is_safe_url function in utils/http.py in Django 1.4.x before 1.4.6, 1.5.x before…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · Partial · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Django (PyPI) | 1.4 to before 1.4.6 | 1.4.6 | Patch available | GHSA-9cwg-mhxf-hh59 |
| — | Django (PyPI) | 1.5 to before 1.5.2 | 1.5.2 | Patch available | GHSA-9cwg-mhxf-hh59 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Django (PyPI) Vendor— Affected 1.4 to before 1.4.6 Fixed in 1.4.6 Patch available GHSA-9cwg-mhxf-hh59
- Django (PyPI) Vendor— Affected 1.5 to before 1.5.2 Fixed in 1.5.2 Patch available GHSA-9cwg-mhxf-hh59
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:* | 1.4 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:* | 1.4.1 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.4.2:*:*:*:*:*:*:* | 1.4.2 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.4.4:*:*:*:*:*:*:* | 1.4.4 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.4.5:*:*:*:*:*:*:* | 1.4.5 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.5:*:*:*:*:*:*:* | 1.5 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.5.1:*:*:*:*:*:*:* | 1.5.1 | Vulnerable | djangoproject |
| cpe:2.3:a:djangoproject:django:1.6:beta1:*:*:*:*:*:* | 1.6 beta1 | Vulnerable | djangoproject |
- cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:* Versions 1.4 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:* Versions 1.4.1 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.4.2:*:*:*:*:*:*:* Versions 1.4.2 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.4.4:*:*:*:*:*:*:* Versions 1.4.4 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.4.5:*:*:*:*:*:*:* Versions 1.4.5 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.5:*:*:*:*:*:*:* Versions 1.5 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.5.1:*:*:*:*:*:*:* Versions 1.5.1 Vulnerable ·djangoproject
- cpe:2.3:a:djangoproject:django:1.6:beta1:*:*:*:*:*:* Versions 1.6 beta1 Vulnerable ·djangoproject
Remediation
- Fix · GHSA-9cwg-mhxf-hh59 Django (PyPI) Fixed in 1.4.6 Advisory →
- Fix · GHSA-9cwg-mhxf-hh59 Django (PyPI) Fixed in 1.5.2 Advisory →
Red Hat 1 advisory
- RHSA-2013:1521 Released 2013-11-14 · Red Hat rating Moderatepython-django security update
- Red Hat Enterprise Linux OpenStack Platform 3.0 Django14-1.4.8-1.el6ost, Django14-doc-1.4.8-1.el6ost
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Subscription Asset Manager | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux OpenStack Platform 3.0 | Fixed | RHSA-2013:1521 |
Timeline
- 2026-10-02 Threatist record created from CVE-2013-6044
- 2026-10-03 Alias added: GHSA-9cwg-mhxf-hh59
References
Other 7
- https://github.com/django/django/commit/ec67af0bd609c412b76eaa4cc89968a2a8e5ad6a
- [oss-security] 20130814 [CVE request] Django 1.4.6 security release
- https://github.com/django/django/commit/ae3535169af804352517b7fea94a42a1c9c4b762
- https://github.com/django/django/commit/1a274ccd6bc1afbdac80344c9b6e5810c1162b5f
- [oss-security] 20130819 Re: [CVE request] Django 1.4.6 security release
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2013-21.yaml
More djangoproject Django vulnerabilities
- TI-2022-15177 An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. CVSS 3.1CRITICAL 9.8
- TI-2020-05994 Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection… CVSS 3.1CRITICAL 9.8
- TI-2023-10198 An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0… CVSS 3.1HIGH 7.5
- TI-2019-14306 Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. CVSS 3.1CRITICAL 9.8
- TI-2019-10595 An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x… CVSS 3.0CRITICAL 9.8
- TI-2021-14006 Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2013-6044 · CVE Program
- CVE-2013-6044 · NVD
- FIRST EPSS
- GHSA-9cwg-mhxf-hh59 · GitHub Advisory Database · CC BY 4.0
- CVE-2013-6044 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences