CVE-2016-6186
MEDIUM 6.1CVSS 3.0Django 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.
- Published
- 5 Aug 2016
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-c8c8-9472-w52hPYSEC-2016-2
- Sources
- NVDJSONOSV GHSA-c8c8-9472-w52hJSONOSV PYSEC-2016-2JSON
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:L/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/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 | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
<= 1.8.13 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9:*:*:*:*:*:*:* |
= 1.9 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.0:rc1:*:*:*:*:*:* |
= 1.9.0 | |
| 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 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.3:*:*:*:*:*:*:* |
= 1.9.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.4:*:*:*:*:*:*:* |
= 1.9.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.5:*:*:*:*:*:*:* |
= 1.9.5 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.6:*:*:*:*:*:*:* |
= 1.9.6 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.7:*:*:*:*:*:*:* |
= 1.9.7 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10:alpha1:*:*:*:*:*:* |
= 1.10 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10:beta1:*:*:*:*:*:* |
= 1.10 | |
| OSV | PyPI | django | < 1.8.14 | 1.8.14 |
| OSV | PyPI | django | >= 1.9, < 1.9.8 | 1.9.8 |
| OSV | PyPI | django | >= 1.10a1, < 1.10rc1 | 1.10rc1 |
| OSV | PyPI | django | < 1.8.14; >= 1.9, < 1.9.8; >= 1.10a0, < 1.10rc1 | 1.8.14, 1.9.8, 1.10rc1 |
References
- http://packetstormsecurity.com/files/137965/Django-3.3.0-Script-Insertion.html · VDB Entry, WEB
- http://rhn.redhat.com/errata/RHSA-2016-1594.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-1595.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-1596.html · WEB, ADVISORY
- http://seclists.org/fulldisclosure/2016/Jul/53 · Mailing List, Patch, WEB
- http://www.debian.org/security/2016/dsa-3622 · Third Party Advisory, WEB, ADVISORY
- http://www.securityfocus.com/archive/1/538947/100/0/threaded · WEB
- http://www.securityfocus.com/bid/92058 · WEB
- http://www.securitytracker.com/id/1036338 · VDB Entry, WEB
- http://www.ubuntu.com/usn/USN-3039-1 · Third Party Advisory, WEB, ADVISORY
- http://www.vulnerability-lab.com/get_content.php?id=1869 · Patch, Third Party Advisory, WEB
- https://github.com/django/django/commit/d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158 · Patch, WEB, FIX
- https://github.com/django/django/commit/f68e5a99164867ab0e071a936470958ed867479d · Patch, WEB, FIX
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DMLLFAUT4J4IP4P2KI4NOVWRMHA22WUJ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KHHPN6MISX5I6UTXQHYLPTLEEUE6WDXW/
- https://www.djangoproject.com/weblog/2016/jul/18/security-releases/ · Patch, Vendor Advisory, WEB, ARTICLE
- https://www.exploit-db.com/exploits/40129/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-6186 · ADVISORY
- https://github.com/django/django/commit/6fa150b2f8b601668083042324c4add534143cb1 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-2.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DMLLFAUT4J4IP4P2KI4NOVWRMHA22WUJ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KHHPN6MISX5I6UTXQHYLPTLEEUE6WDXW · WEB
- https://web.archive.org/web/20201022155237/http://www.securityfocus.com/archive/1/538947/100/0/threaded · WEB
- https://web.archive.org/web/20210123154652/http://www.securityfocus.com/bid/92058 · WEB
- https://web.archive.org/web/20211204042848/http://www.securitytracker.com/id/1036338 · WEB
- https://github.com/advisories/GHSA-c8c8-9472-w52h · ADVISORY
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 5 Aug 2016)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Aug 2016)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 May 2022)