CVE-2016-6186
Django Cross-site scripting Vulnerability
Reported by mitre · Published August 5, 2016
Django is fixed in d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158, 1.9.8, 1.8.14 and 1 more (PyPI)
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.
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 | PyPI | d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158, 1.9.8, 1.8.14, 1.10rc1 |
| django | djangoproject | 1.8.13 |
| python-django | Ubuntu:16.04:LTS | 1.8.7-1ubuntu5.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | Django | 0, 1.9, 1.10a1 |
| n/a | n/a | * |
Timeline
- Jul 18, 2016 CVE Published
- Jul 20, 2016 PoC Published (2 in total, the first dated here)
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 5, 2026 Security Advisory (3 in total, the first dated here)
- Oct 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-6186
vulnetix vdb fixes CVE-2016-6186
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-2016-6186/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 1036338 vdb-entryx_refsource_SECTRACK
- 20160719 Django CMS v3.3.0 - (Editor Snippet) Persistent Web Vulnerability (CVE-2016-6186) mailing-listx_refsource_FULLDISC
- RHSA-2016:1594 vendor-advisoryx_refsource_REDHAT
- DSA-3622 vendor-advisoryx_refsource_DEBIAN
- FEDORA-2016-97ca9d52a4 vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC
- 20160719 Django CMS v3.3.0 - (Editor Snippet) Persistent Web Vulnerability (CVE-2016-6186) mailing-listx_refsource_BUGTRAQ
- x_refsource_MISC
- USN-3039-1 vendor-advisoryx_refsource_UBUNTU
- FEDORA-2016-b7e31a0b9a vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- RHSA-2016:1596 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 92058 vdb-entryx_refsource_BID
- RHSA-2016:1595 vendor-advisoryx_refsource_REDHAT
- 40129 exploitx_refsource_EXPLOIT-DB
- https://nvd.nist.gov/vuln/detail/CVE-2016-6186 advisory
- https://github.com/advisories/GHSA-c8c8-9472-w52h advisory
- https://github.com/django/django/commit/6fa150b2f8b601668083042324c4add534143cb1 patch
…and 9 more