CVE-2016-2512
HIGH 7.4CVSS 3.0Django XSS Vulnerability
The utils.http.is_safe_url function in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks or possibly conduct cross-site scripting (XSS) attacks via a URL containing basic authentication, as demonstrated by http://mysite.example.com@attacker.com.
- Published
- 8 Apr 2016
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-pw27-w7w4-9qc7PYSEC-2016-15
- Sources
- NVDJSONOSV GHSA-pw27-w7w4-9qc7JSONOSV PYSEC-2016-15JSON
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:N/SI:H/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/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.8.9:*:*:*:*:*:*:* |
= 1.8.9 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9:*:*:*:*:*:*:* |
= 1.9 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.1:*:*:*:*:*:*:* |
= 1.9.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.2:*:*:*:*:*:*:* |
= 1.9.2 | |
| OSV | PyPI | django | < 1.8.10 | 1.8.10 |
| OSV | PyPI | django | >= 1.9a1, < 1.9.3 | 1.9.3 |
| OSV | PyPI | django | < 1.8.10; >= 1.9, < 1.9.3 | 1.8.10, 1.9.3 |
References
- http://rhn.redhat.com/errata/RHSA-2016-0502.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-0504.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-0505.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-0506.html · WEB, ADVISORY
- http://www.debian.org/security/2016/dsa-3544 · WEB, ADVISORY
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html · WEB
- http://www.securityfocus.com/bid/83879 · WEB
- http://www.securitytracker.com/id/1035152 · WEB
- http://www.ubuntu.com/usn/USN-2915-1 · WEB, ADVISORY
- http://www.ubuntu.com/usn/USN-2915-2 · WEB, ADVISORY
- http://www.ubuntu.com/usn/USN-2915-3 · WEB, ADVISORY
- https://github.com/django/django/commit/c5544d289233f501917e25970c03ed444abbd4f0 · WEB, FIX
- https://www.djangoproject.com/weblog/2016/mar/01/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2016-2512 · ADVISORY
- https://github.com/django/django/commit/382ab137312961ad62feb8109d70a5a581fe8350 · WEB
- https://github.com/django/django/commit/fc6d147a63f89795dbcdecb0559256470fff4380 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-15.yaml · WEB
- https://web.archive.org/web/20210123090815/http://www.securityfocus.com/bid/83879 · WEB
- https://web.archive.org/web/20210413200202/http://www.securitytracker.com/id/1035152 · WEB
- https://github.com/advisories/GHSA-pw27-w7w4-9qc7 · ADVISORY
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 8 Apr 2016)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Apr 2016)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 May 2022)