CVE-2016-2512 json
Django XSS Vulnerability
published 2016-04-08 10 y ago modified 2026-06-17 4 mo ago also GHSA-pw27-w7w4-9qc7 , PYSEC-2016-15 , EUVD-2016-0004
- cvss
- 7.4
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.1%
- EPSS 4.1% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django 1.8.10, 1.9.3
- python-django Debian 14, Debian 13, Debian 12 1.9.4-1
debian advisories DEBIAN-CVE-2016-2512
- python-django Ubuntu 14.04 LTS 1.6.1-2ubuntu0.12
ubuntu advisories UBUNTU-CVE-2016-2512
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-django openstack-optools 7, openstack 6, openstack 5 1.6.11-5.el7ost
- python-django-bash-completion openstack-optools 7, openstack 6, openstack 5 1.6.11-5.el7ost
- python-django openstack 7 1.8.11-1.el7ost
- python-django-bash-completion openstack 7 1.8.11-1.el7ost
- python-django openstack 5 1.6.11-5.el6ost
- python-django-bash-completion openstack 5 1.6.11-5.el6ost
red hat advisories RHSA-2016:0506RHSA-2016:0503RHSA-2016:0504RHSA-2016:0505RHSA-2016:0502
- python-Django Enterprise Storage 5 1.6.11-6.5.1
- python-Django Enterprise Storage 4 1.6.11-5.5.1
- python-Django OpenStack Cloud 6 1.8.19-3.6.1
suse advisories SUSE-SU-2018:1830-1SUSE-SU-2018:1828-1SUSE-SU-2018:1102-1
- python-Django openSUSE Tumbleweed 1.10.4-1.1
opensuse advisories openSUSE-SU-2024:10361-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-2512 updated cvss 5.8
python-django: Malicious redirect and possible XSS attack via user-supplied redirect URLs containing basic auth
-
Red Hat Ceph Storage 1.2 Django Red Hat Ceph Storage 1.3 Django Red Hat Subscription Asset Manager Djangoaffected: no fix available
-
Red Hat Enterprise Linux OpenStack Platform 5.0 (Icehouse) for RHEL 6 python-django 1.6.11-5.el6ost, python-django-bash-completion 1.6.11-5.el6ostfixed: vendor fix RHSA-2016:0502
-
Red Hat Enterprise Linux OpenStack Platform 5.0 (Icehouse) for RHEL 7 python-django 1.6.11-5.el7ost, python-django-bash-completion 1.6.11-5.el7ostfixed: vendor fix RHSA-2016:0506
-
Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7 python-django 1.6.11-5.el7ost, python-django-bash-completion 1.6.11-5.el7ostfixed: vendor fix RHSA-2016:0505
-
Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7 python-django 1.8.11-1.el7ost, python-django-bash-completion 1.8.11-1.el7ostfixed: vendor fix RHSA-2016:0504
-
Red Hat Enterprise Linux OpenStack Platform 7.0 Operational Tools for RHEL 7 python-django 1.6.11-5.el7ost, python-django-bash-completion 1.6.11-5.el7ostfixed: vendor fix RHSA-2016:0503
-
Red Hat OpenStack Platform 8 (Liberty) python-django, python-django-bash-completion Red Hat OpenStack Platform 8 (Liberty) Operational Tools python-django, python-django-bash-completionnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.05% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 7.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | <1.8.10 >=1.9a1, <1.9.3 >=1.9, <1.9.3 |
1.8.10 1.9.3 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/django/django/commit/c5544d289233f501917e25970c03ed444abbd4f0
web, patch
-
github.com
/django/django/commit/382ab137312961ad62feb8109d70a5a581fe8350
web
-
github.com
/django/django/commit/fc6d147a63f89795dbcdecb0559256470fff4380
web
-
rhn.redhat.com
/errata/RHSA-2016-0506.html
vendor-advisory, web, advisory
-
rhn.redhat.com
/errata/RHSA-2016-0504.html
vendor-advisory, web, advisory
-
debian.org
/security/2016/dsa-3544
vendor-advisory, web, advisory
-
rhn.redhat.com
/errata/RHSA-2016-0502.html
vendor-advisory, web, advisory
-
ubuntu.com
/usn/USN-2915-3
vendor-advisory, web, advisory
-
ubuntu.com
/usn/USN-2915-2
vendor-advisory, web, advisory
-
rhn.redhat.com
/errata/RHSA-2016-0505.html
vendor-advisory, web, advisory
-
ubuntu.com
/usn/USN-2915-1
vendor-advisory, web, advisory
-
djangoproject.com
/weblog/2016/mar/01/security-releases/
vendor-advisory, article
-
securitytracker.com
/id/1035152
vdb-entry, web
-
securityfocus.com
/bid/83879
vdb-entry, web
-
oracle.com
/technetwork/topics/security/bulletinapr2016-2952098.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2016-2512
advisory
-
github.com
/django/django
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-15.yaml
web
-
web.archive.org
/web/20210123090815/http://www.securityfocus.com/bid/83879
web
-
web.archive.org
/web/20210413200202/http://www.securitytracker.com/id/1035152
web
-
djangoproject.com
/weblog/2016/mar/01/security-releases
web
-
github.com
/advisories/GHSA-pw27-w7w4-9qc7
advisory
Sources
- CVE List CVE-2016-2512
- GitHub Advisory GHSA-pw27-w7w4-9qc7
- NVD CVE-2016-2512
- OSV PYSEC-2016-15
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.