{"id":"GHSA-c8c8-9472-w52h","summary":"Django Cross-site scripting Vulnerability","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":["CVE-2016-6186","PYSEC-2016-2"],"modified":"2024-09-17T15:22:20.617264Z","published":"2022-05-14T02:46:13Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-07-31T18:31:52Z","nvd_published_at":"2016-08-05T15:59:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6186"},{"type":"WEB","url":"https://github.com/django/django/commit/6fa150b2f8b601668083042324c4add534143cb1"},{"type":"WEB","url":"https://github.com/django/django/commit/d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158"},{"type":"WEB","url":"https://github.com/django/django/commit/f68e5a99164867ab0e071a936470958ed867479d"},{"type":"PACKAGE","url":"https://github.com/django/django"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-2.yaml"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DMLLFAUT4J4IP4P2KI4NOVWRMHA22WUJ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KHHPN6MISX5I6UTXQHYLPTLEEUE6WDXW"},{"type":"WEB","url":"https://web.archive.org/web/20201022155237/http://www.securityfocus.com/archive/1/538947/100/0/threaded"},{"type":"WEB","url":"https://web.archive.org/web/20210123154652/http://www.securityfocus.com/bid/92058"},{"type":"WEB","url":"https://web.archive.org/web/20211204042848/http://www.securitytracker.com/id/1036338"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2016/jul/18/security-releases"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/40129"},{"type":"WEB","url":"http://packetstormsecurity.com/files/137965/Django-3.3.0-Script-Insertion.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2016-1594.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2016-1595.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2016-1596.html"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2016/Jul/53"},{"type":"WEB","url":"http://www.debian.org/security/2016/dsa-3622"},{"type":"WEB","url":"http://www.ubuntu.com/usn/USN-3039-1"},{"type":"WEB","url":"http://www.vulnerability-lab.com/get_content.php?id=1869"}],"affected":[{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.14"}]}],"versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.1","1.1.1","1.1.2","1.1.3","1.1.4","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.4","1.4.1","1.4.10","1.4.11","1.4.12","1.4.13","1.4.14","1.4.15","1.4.16","1.4.17","1.4.18","1.4.19","1.4.2","1.4.20","1.4.21","1.4.22","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","1.5","1.5.1","1.5.10","1.5.11","1.5.12","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.5.9","1.6","1.6.1","1.6.10","1.6.11","1.6.2","1.6.3","1.6.4","1.6.5","1.6.6","1.6.7","1.6.8","1.6.9","1.7","1.7.1","1.7.10","1.7.11","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9","1.8","1.8.1","1.8.10","1.8.11","1.8.12","1.8.13","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","1.8.8","1.8.9","1.8a1","1.8b1","1.8b2","1.8c1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c8c8-9472-w52h/GHSA-c8c8-9472-w52h.json"}},{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9"},{"fixed":"1.9.8"}]}],"versions":["1.9","1.9.1","1.9.2","1.9.3","1.9.4","1.9.5","1.9.6","1.9.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c8c8-9472-w52h/GHSA-c8c8-9472-w52h.json"}},{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.10a1"},{"fixed":"1.10rc1"}]}],"versions":["1.10a1","1.10b1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c8c8-9472-w52h/GHSA-c8c8-9472-w52h.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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"}]}