Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2016-6186 EUVD-2016-0008GHSA-c8c8-9472-w52hPYSEC-2016-2

Django Cross-site scripting Vulnerability

Published Aug 5, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

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 in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 1:1.9.8-1 —
Debian 13 python-django 1:1.9.8-1 —
Debian 12 python-django 1:1.9.8-1 —
Debian 8 python-django 1.7.7-1+deb8u5 DSA-3622-1
Debian 7 python-django 1.4.5-1+deb7u17 DLA-555-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS python-django 1.8.7-1ubuntu5.1 USN-3039-1
ReleasePackageFixed inAdvisory
Red Hat Openstack-optools 8 python-django +1 1.8.14-1.el7ost RHSA-2016:1594
Red Hat OpenStack 8 python-django +1 1.8.14-1.el7ost RHSA-2016:1596
Red Hat OpenStack 7 python-django +2 1.8.14-1.el7ost RHSA-2016:1595

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.8.14 1.8.14 GHSA-c8c8-9472-w52h
PyPI django >= 1.9, < 1.9.8 1.9.8 GHSA-c8c8-9472-w52h
PyPI django >= 1.10a1, < 1.10rc1 1.10rc1 GHSA-c8c8-9472-w52h
PyPI django < 1.8.14 · >= 1.9, < 1.9.8 · >= 1.10a0, < 1.10rc1 1.8.14, 1.9.8, 1.10rc1 PYSEC-2016-2

Advisories 6

References