CVE-2016-6186
Django Cross-site scripting Vulnerability
CVE-2016-6186 is a medium vulnerability (CVSS 6.1) in Djangoproject Django, published July 18, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 5.58%, the 92nd percentile. Fixed in django 1.8.14.
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.1
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
CVE-2016-6186- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
CVE-2016-6186- Updated
- 2026-11-02
EUVDEUVD-2016-0008 No score
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
EUVD-2016-0008- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-c8c8-9472-w52h
5.3
Django Cross-site scripting Vulnerability
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
GHSA-c8c8-9472-w52h- CVSS 4.0
- 5.3 Medium
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 - CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.1
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
CVE-2016-6186- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-6186
6.1
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
DEBIAN-CVE-2016-6186- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Show 8 moreShow less
OSVGHSA-c8c8-9472-w52h
5.3
Django Cross-site scripting Vulnerability
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
GHSA-c8c8-9472-w52h- CVSS 4.0
- 5.3 Medium
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 - CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVRHSA-2016:1594
6.1
Red Hat Security Advisory: python-django security update
- Record
RHSA-2016:1594- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVRHSA-2016:1595
6.1
Red Hat Security Advisory: python-django security update
- Record
RHSA-2016:1595- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVRHSA-2016:1596
6.1
Red Hat Security Advisory: python-django security update
- Record
RHSA-2016:1596- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-6186
6.1
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
UBUNTU-CVE-2016-6186- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVMGASA-2016-0282 No score
Updated python-django packages fix security vulnerability
It was discovered that Django is prone to a cross-site scripting vulnerability in the admin's add/change related popup (CVE-2016-6186).
- Record
MGASA-2016-0282- Updated
- 2026-11-02
OSVPYSEC-2016-2 No score
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.
- Record
PYSEC-2016-2- Updated
- 2026-11-02
OSVUSN-3039-1 No score
python-django vulnerability
It was discovered that Django incorrectly handled the admin's add/change related popup. A remote attacker could possibly use this issue to perform a cross-site scripting attack.
- Record
USN-3039-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
djangoPyPI |
before 1.8.14 | 1.8.14 |
djangoPyPI |
1.9 up to 1.9.8 | 1.9.8 |
djangoPyPI |
1.10a1 up to 1.10rc1 | 1.10rc1 |
python-djangoDebian:12 |
before 1:1.9.8-1 | 1:1.9.8-1 |
python-djangoDebian:13 |
before 1:1.9.8-1 | 1:1.9.8-1 |
python-djangoDebian:14 |
before 1:1.9.8-1 | 1:1.9.8-1 |
python-djangoDebian:7 |
before 1.4.5-1+deb7u17, plus listed versions 1.4.5-11.4.5-1+deb7u11.4.5-1+deb7u101.4.5-1+deb7u111.4.5-1+deb7u11~bpo60+1 Show 18 moreShow less1.4.5-1+deb7u121.4.5-1+deb7u131.4.5-1+deb7u13~bpo60+11.4.5-1+deb7u141.4.5-1+deb7u14~bpo60+11.4.5-1+deb7u151.4.5-1+deb7u161.4.5-1+deb7u21.4.5-1+deb7u31.4.5-1+deb7u41.4.5-1+deb7u4~bpo60+11.4.5-1+deb7u51.4.5-1+deb7u61.4.5-1+deb7u71.4.5-1+deb7u7~bpo60+11.4.5-1+deb7u81.4.5-1+deb7u8~bpo60+11.4.5-1+deb7u9 |
1.4.5-1+deb7u17 |
python-djangoDebian:8 |
before 1.7.7-1+deb8u5, plus listed versions 1.7.7-11.7.7-1+deb8u11.7.7-1+deb8u21.7.7-1+deb8u31.7.7-1+deb8u4 |
1.7.7-1+deb8u5 |
djangoPyPI |
before 1.8.14, plus listed versions 1.0.11.0.21.0.31.0.41.1 Show 45 moreShow less1.1.11.1.21.1.31.1.41.21.2.11.2.21.2.31.2.41.2.51.2.61.2.71.31.3.11.3.21.3.31.3.41.3.51.3.61.3.71.41.4.11.4.101.4.111.4.121.4.131.4.141.4.151.4.161.4.171.4.181.4.191.4.21.4.201.4.211.4.221.4.31.4.41.4.51.4.61.4.71.4.81.4.91.51.5.1 |
1.8.14 |
djangoPyPI |
1.9 up to 1.9.8, plus listed versions 1.9.11.9.21.9.31.9.41.9.51.9.61.9.7 |
1.9.8 |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
djangoPyPI |
1.10a1 up to 1.10rc1, plus listed versions 1.10b1 |
1.10rc1 |
python-djangoMageia:5 |
before 1.8.14-1.mga5 | 1.8.14-1.mga5 |
djangoPyPI |
before 1.8.14, 1.9 up to 1.9.8, 1.10a0 up to 1.10rc1, plus listed versions 1.0.11.0.21.0.31.0.41.1 Show 45 moreShow less1.1.11.1.21.1.31.1.41.10a11.10b11.21.2.11.2.21.2.31.2.41.2.51.2.61.2.71.31.3.11.3.21.3.31.3.41.3.51.3.61.3.71.41.4.11.4.101.4.111.4.121.4.131.4.141.4.151.4.161.4.171.4.181.4.191.4.21.4.201.4.211.4.221.4.31.4.41.4.51.4.61.4.71.4.81.4.9 |
1.8.141.9.81.10rc1 |
python-djangoRed Hat:openstack-optools:8::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-django-bash-completionRed Hat:openstack-optools:8::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-djangoRed Hat:openstack:7::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-django-bash-completionRed Hat:openstack:7::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-django-docRed Hat:openstack:7::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-djangoRed Hat:openstack:8::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-django-bash-completionRed Hat:openstack:8::el7 |
before 0:1.8.14-1.el7ost | 0:1.8.14-1.el7ost |
python-djangoUbuntu:16.04:LTS |
before 1.8.7-1ubuntu5.1, plus listed versions 1.7.9-1ubuntu51.8.5-2ubuntu11.8.7-1ubuntu11.8.7-1ubuntu21.8.7-1ubuntu31.8.7-1ubuntu41.8.7-1ubuntu5 |
1.8.7-1ubuntu5.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Django CMS 3.3.0 - Editor Snippet Persistent Cross-Site Scripting | 2016-07-20 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
References
securitytracker.com/id/1036338
seclists.org/fulldisclosure/2016/Jul/53
rhn.redhat.com/errata/RHSA-2016-1594.html
debian.org/security/2016/dsa-3622
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KHHPN6MISX5I6UTXQHYLPTLEEUE6WDXW
vulnerability-lab.com/get_content.php?id=1869
Show 36 moreShow less
securityfocus.com/archive/1/538947/100/0/threaded
packetstormsecurity.com/files/137965/Django-3.3.0-Script-Insertion.html
ubuntu.com/usn/USN-3039-1
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DMLLFAUT4J4IP4P2KI4NOVWRMHA22WUJ
github.com/django/django/commit/f68e5a99164867ab0e071a936470958ed867479d
rhn.redhat.com/errata/RHSA-2016-1596.html
djangoproject.com/weblog/2016/jul/18/security-releases
github.com/django/django/commit/d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158
securityfocus.com/bid/92058
rhn.redhat.com/errata/RHSA-2016-1595.html
exploit-db.com/exploits/40129
nvd.nist.gov/vuln/detail/CVE-2016-6186
web.archive.org/web/20201022155237/http://www.securityfocus.com/archive/1/538947/100/0/threaded
web.archive.org/web/20210123154652/http://www.securityfocus.com/bid/92058
web.archive.org/web/20211204042848/http://www.securitytracker.com/id/1036338
github.com/django/django/commit/6fa150b2f8b601668083042324c4add534143cb1
lists.fedoraproject.org/archives/list/[email protected]/message/DMLLFAUT4J4IP4P2KI4NOVWRMHA22WUJ
lists.fedoraproject.org/archives/list/[email protected]/message/KHHPN6MISX5I6UTXQHYLPTLEEUE6WDXW
github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-2.yaml
github.com/advisories/GHSA-c8c8-9472-w52h
security-tracker.debian.org/tracker/CVE-2016-6186
github.com/django/django
advisories.mageia.org/MGASA-2016-0282.html
bugs.mageia.org/show_bug.cgi?id=18979
access.redhat.com/errata/RHSA-2016:1594
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1355663
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_1594.json
access.redhat.com/security/cve/CVE-2016-6186
cve.org/CVERecord?id=CVE-2016-6186
access.redhat.com/errata/RHSA-2016:1595
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_1595.json
access.redhat.com/errata/RHSA-2016:1596
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_1596.json
ubuntu.com/security/CVE-2016-6186
ubuntu.com/security/notices/USN-3039-1
Left out here: 121 versions. The JSON record has them.