CVE-2015-2317
Django cross-site scripting (XSS) attack via user-supplied redirect URLs
Reported by mitre · Published March 25, 2015
The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \x08javascript: URL.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| django | djangoproject | 1.4.19 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | Django | 0, 1.5, 1.7 |
Timeline
- Mar 25, 2015 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Sep 18, 2024 CVE Updated
- Mar 5, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 5, 2026 Security Advisory (5 in total, the first dated here)
- Oct 15, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2015-2317
vulnetix vdb fixes CVE-2015-2317
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2015-2317/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-2539-1 vendor-advisoryx_refsource_UBUNTU
- 73319 vdb-entryx_refsource_BID
- DSA-3204 vendor-advisoryx_refsource_DEBIAN
- FEDORA-2015-5766 vendor-advisoryx_refsource_FEDORA
- openSUSE-SU-2015:1598 vendor-advisoryx_refsource_SUSE
- x_refsource_CONFIRM
- MDVSA-2015:195 vendor-advisoryx_refsource_MANDRIVA
- openSUSE-SU-2015:0643 vendor-advisoryx_refsource_SUSE
- FEDORA-2015-9604 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2015-2317 advisory
- https://github.com/advisories/GHSA-7fq8-4pv5-5w5c advisory
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-9.yaml advisory
- https://web.archive.org/web/20200228131706/http://www.securityfocus.com/bid/73319 url
- https://www.djangoproject.com/weblog/2015/mar/18/security-releases url
- https://github.com/django/django/commit/2342693b31f740a422abf7267c53b4e7bc487c1b fix
- https://github.com/django/django/commit/2a4113dbd532ce952308992633d802dc169a75f1 fix
- https://github.com/django/django/commit/5510f070711540aaa8d3707776cd77494e688ef9 fix
- https://github.com/django/django/commit/770427c2896a078925abfca2317486b284d22f04 fix