Skip to content
OpenAdvisories
Medium · 6.1 CVE-2015-2241 EUVD-2015-0017GHSA-6565-fg86-6jcxPYSEC-2015-8

Django Cross-site Scripting Vulnerability

Published Mar 12, 2015 · Updated Aug 6, 2024 · Assigned by mitre

Description

Cross-site scripting (XSS) vulnerability in the contents function in admin/helpers.py in Django before 1.7.6 and 1.8 before 1.8b2 allows remote attackers to inject arbitrary web script or HTML via a model attribute in ModelAdmin.readonly_fields, as demonstrated by a @property.

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.7.6-1 —
Debian 13 python-django 1.7.6-1 —
Debian 12 python-django 1.7.6-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.7.6 1.7.6 GHSA-6565-fg86-6jcx
PyPI django >= 1.8a1, < 1.8b2 1.8b2 GHSA-6565-fg86-6jcx
PyPI django < 1.7.6 · >= 1.8a1, < 1.8b2 1.7.6, 1.8b2 PYSEC-2015-8

References