{"id":"CVE-2016-6186","details":"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.","aliases":["GHSA-c8c8-9472-w52h","PYSEC-2016-2"],"modified":"2026-07-08T05:49:57.856808824Z","published":"2016-08-05T15:59:09.503Z","database_specific":{"unresolved_ranges":[{"source":"CPE_STRING","vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"8.0"},{"last_affected":"8.0"}]},{"source":"CPE_STRING","vendor_product":"djangoproject:django","cpes":["cpe:2.3:a:djangoproject:django:1.10:alpha1:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.10:beta1:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.0:rc1:*:*:*:*:*:*"],"extracted_events":[{"introduced":"1.9.0-rc1"},{"last_affected":"1.9.0-rc1"},{"introduced":"1.10-alpha1"},{"last_affected":"1.10-alpha1"},{"introduced":"1.10-beta1"},{"last_affected":"1.10-beta1"}]}]},"references":[{"type":"WEB","url":"http://www.securityfocus.com/archive/1/538947/100/0/threaded"},{"type":"WEB","url":"http://www.securityfocus.com/bid/92058"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DMLLFAUT4J4IP4P2KI4NOVWRMHA22WUJ/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KHHPN6MISX5I6UTXQHYLPTLEEUE6WDXW/"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/40129/"},{"type":"ADVISORY","url":"http://packetstormsecurity.com/files/137965/Django-3.3.0-Script-Insertion.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-1594.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-1595.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-1596.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3622"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1036338"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3039-1"},{"type":"FIX","url":"http://seclists.org/fulldisclosure/2016/Jul/53"},{"type":"FIX","url":"http://www.vulnerability-lab.com/get_content.php?id=1869"},{"type":"FIX","url":"https://github.com/django/django/commit/d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158"},{"type":"FIX","url":"https://github.com/django/django/commit/f68e5a99164867ab0e071a936470958ed867479d"},{"type":"FIX","url":"https://www.djangoproject.com/weblog/2016/jul/18/security-releases/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"0"},{"last_affected":"4022b2c306e88a4ab7f80507e736ce7ac7d01186"},{"introduced":"3df8ccf6fc3fa0ab2acf9a03da43fea87f8ff392"},{"last_affected":"8a2a3a63b83375d9322c077b6356007e0bef5939"},{"fixed":"d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158"},{"fixed":"f68e5a99164867ab0e071a936470958ed867479d"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"1.8.13"},{"introduced":"1.9"},{"last_affected":"1.9"},{"introduced":"1.9.1"},{"last_affected":"1.9.1"},{"introduced":"1.9.2"},{"last_affected":"1.9.2"},{"introduced":"1.9.3"},{"last_affected":"1.9.3"},{"introduced":"1.9.4"},{"last_affected":"1.9.4"},{"introduced":"1.9.5"},{"last_affected":"1.9.5"},{"introduced":"1.9.6"},{"last_affected":"1.9.6"},{"introduced":"1.9.7"},{"last_affected":"1.9.7"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"],"cpe":["cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.1:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.2:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.3:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.4:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.5:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.6:*:*:*:*:*:*:*","cpe:2.3:a:djangoproject:django:1.9.7:*:*:*:*:*:*:*"]}}],"versions":["1.9","1.9.1","1.9.2","1.9.3","1.9.4","1.9.5","1.9.6","1.9.7","1.8.13","1.8.12","1.8.11","1.8.10","1.8.9","1.8.8","1.9rc2","1.8.7","1.9rc1","1.8.6","1.9b1","1.8.5","1.9a1","1.8.4","1.8.3","1.8.2","1.8.1","1.8","1.8c1","1.8b2","1.8b1","1.8a1","1.7a2","1.4","1.3","1.2.1","1.2","1.1","1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-6186.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}