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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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 |