Skip to content
OpenAdvisories
Medium · 6.1 Scanner template CVE-2017-12794 EUVD-2017-0025GHSA-9r8w-6x8c-6jr9PYSEC-2017-44

Django vulnerable to XSS on 500 pages

Published Sep 7, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud 6 python-Django 1.8.19-3.6.1 SUSE-SU-2018:1102-1
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References