Description
In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for the technical 500 debug page. Given the right circumstances, this allowed a cross-site scripting attack. This vulnerability shouldn't affect most production sites since you shouldn't run with "DEBUG = True" (which makes this page accessible) in your production settings.
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:1.11.5-1 | — |
| Debian 13 | python-django | 1:1.11.5-1 | — |
| Debian 12 | python-django | 1:1.11.5-1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 12 SP1 | python-Django | 1.11.15-2.1 | openSUSE-SU-2023:0077-1 |
| SUSE Package Hub 12 | python-Django | 1.11.10-5.1 | openSUSE-SU-2018:0632-1 |
| SUSE OpenStack Cloud 7 | python-Django | 1.8.19-3.4.1 | SUSE-SU-2018:0973-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 6 | python-Django | 1.8.19-3.6.1 | SUSE-SU-2018:1102-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Django | 3.2.7-2.3 | openSUSE-SU-2026:11248-1, openSUSE-SU-2024:13887-1, openSUSE-SU-2024:11205-1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.14-1.1 | openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14208-1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE Tumbleweed | python-Django6 | 6.0-1.1 | openSUSE-SU-2026:10005-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-django | 1.11.5-r0 | — |
| Alpine v3.23 | py3-django | 1.11.5-r0 | — |
| Alpine v3.22 | py3-django | 1.11.5-r0 | — |
| Alpine v3.21 | py3-django | 1.11.5-r0 | — |
| Alpine v3.20 | py3-django | 1.11.5-r0 | — |
Show 14 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-django | 1.11.5-r0 | — |
| Alpine v3.18 | py3-django | 1.11.5-r0 | — |
| Alpine v3.17 | py3-django | 1.11.5-r0 | — |
| Alpine v3.16 | py3-django | 1.11.5-r0 | — |
| Alpine v3.15 | py3-django | 1.11.5-r0 | — |
| Alpine v3.14 | py3-django | 1.11.5-r0 | — |
| Alpine v3.13 | py3-django | 1.11.5-r0 | — |
| Alpine v3.12 | py3-django | 1.11.5-r0 | — |
| Alpine v3.11 | py3-django | 1.11.5-r0 | — |
| Alpine v3.10 | py-django | 1.11.5-r0 | — |
| Alpine v3.9 | py-django | 1.11.5-r0 | — |
| Alpine v3.8 | py-django | 1.11.5-r0 | — |
| Alpine v3.7 | py-django | 1.11.5-r0 | — |
| Alpine v3.6 | py-django | 1.11.11-r0 | — |
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Django Debug Page - Cross-Site Scripting http/cves/2017/CVE-2017-12794.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.10a1, < 1.10.8 | 1.10.8 | GHSA-9r8w-6x8c-6jr9 |
| PyPI | django | >= 1.11a1, < 1.11.5 | 1.11.5 | GHSA-9r8w-6x8c-6jr9 |
| PyPI | django | >= 1.10, < 1.10.8 · >= 1.11, < 1.11.5 | 1.10.8, 1.11.5 | PYSEC-2017-44 |
Advisories 11
- openSUSE-SU-2026:11270-1 python313-Django5-5.2.16-1.1 on GA media SUSE / openSUSE Security Updates · Jul 15, 2026
- openSUSE-SU-2026:11248-1 python313-Django-5.2.16-1.1 on GA media SUSE / openSUSE Security Updates · Jul 11, 2026
- openSUSE-SU-2026:11235-1 python313-Django4-4.2.30-4.1 on GA media SUSE / openSUSE Security Updates · Jul 10, 2026
- openSUSE-SU-2026:10005-1 python312-Django6-6.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2018:0632-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11205-1 python36-Django-3.2.7-2.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1102-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13887-1 python310-Django-4.2.11-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0973-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0077-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14208-1 python310-Django4-4.2.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- USN-3559-1 vendor-advisory
- 100643 vdb-entry
- 1039264 vdb-entry
- https://www.djangoproject.com/weblog/2017/sep/05/security-releases/