CVE-2017-12794 json
Django vulnerable to XSS on 500 pages
published 2017-09-07 9 y ago modified 2026-06-17 4 mo ago also GHSA-9r8w-6x8c-6jr9 , PYSEC-2017-44 , EUVD-2017-0025
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 23.6%
- EPSS 23.6% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- pypi django 1.10.8, 1.11.5
- python-django Debian 14, Debian 13, Debian 12 1:1.11.5-1
debian advisories DEBIAN-CVE-2017-12794
- python-Django OpenStack Cloud 6 1.8.19-3.6.1
- python-Django OpenStack Cloud 7 1.8.19-3.4.1
suse advisories SUSE-SU-2018:1102-1SUSE-SU-2018:0973-1
- python-Django5 openSUSE Tumbleweed 5.2.16-1.1
- python-Django openSUSE Tumbleweed 5.2.16-1.1
- python-Django4 openSUSE Tumbleweed 4.2.30-4.1
- python-Django6 openSUSE Tumbleweed 6.0-1.1
- python-Django4 openSUSE Tumbleweed 4.2.14-1.1
- python-Django openSUSE Tumbleweed 3.2.7-2.3
- python-Django openSUSE Tumbleweed 4.2.11-2.1
- python-Django Package Hub 12 SP1 1.11.15-2.1
opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:11248-1openSUSE-SU-2026:11235-1openSUSE-SU-2026:10005-1openSUSE-SU-2024:14208-1openSUSE-SU-2024:11205-1
- py-django Alpine 3.10, Alpine 3.9, Alpine 3.8 +1 more 1.11.5-r0
- py-django Alpine 3.6 1.11.11-r0
- py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 1.11.5-r0
alpine advisories ALPINE-CVE-2017-12794
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-12794 updated cvss 4.0
python-django: Possible XSS in traceback section of technical 500 debug page
-
Red Hat Ceph Storage 1.3 Django Red Hat Ceph Storage 2 python-django, python-django-bash-completion Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) python-django Red Hat Enterprise Linux OpenStack Platform 6 (Juno) python-django Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) python-django, python-django-bash-completion Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) Operational Tools python-django, python-django-bash-completionnot affected: vulnerable code not present
+11 more productsfewer
Red Hat OpenStack Platform 8 (Liberty) python-django, python-django-bash-completion Red Hat OpenStack Platform 8 (Liberty) Operational Tools python-django, python-django-bash-completion Red Hat OpenStack Platform 9 (Mitaka) python-django, python-django-bash-completion Red Hat OpenStack Platform 9 (Mitaka) Operational Tools python-django, python-django-bash-completion Red Hat OpenStack Platform 10 (Newton) python-django, python-django-bash-completion Red Hat OpenStack Platform 10 (Newton) Operational Tools python-django, python-django-bash-completion Red Hat OpenStack Platform 11 (Ocata) python-django Red Hat OpenStack Platform 12 (Pike) python-django, python-django-bash-completion Red Hat Satellite 6 python-django, python2-django, python-django-bash-completion Red Hat Storage Console 2 Django, python-django Red Hat Subscription Asset Manager Django
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
23.57% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Django Debug Page - Cross-Site Scripting nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | >=1.10a1, <1.10.8 >=1.11a1, <1.11.5 >=1.10, <1.10.8 >=1.11, <1.11.5 |
1.10.8 1.11.5 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
djangoproject.com
/weblog/2017/sep/05/security-releases/
patch, vendor-advisory, article
-
github.com
/django/django/commit/58e08e80e362db79eb0fd775dc81faad90dca47a
web
-
github.com
/django/django/commit/e35a0c56086924f331e9422daa266e907a4784cc
web
-
usn.ubuntu.com
/3559-1/
vendor-advisory, web
-
securityfocus.com
/bid/100643
vdb-entry, third-party-advisory, web
-
securitytracker.com
/id/1039264
vdb-entry, third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2017-12794
advisory
-
github.com
/advisories/GHSA-9r8w-6x8c-6jr9
advisory
-
github.com
/django/django
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2017-44.yaml
web
-
usn.ubuntu.com
/3559-1
web
-
web.archive.org
/web/20170927072701/http://www.securitytracker.com/id/1039264
web
-
web.archive.org
/web/20200227150819/http://www.securityfocus.com/bid/100643
web
-
djangoproject.com
/weblog/2017/sep/05/security-releases
web
Sources
- CVE List CVE-2017-12794
- GitHub Advisory GHSA-9r8w-6x8c-6jr9
- NVD CVE-2017-12794
- OSV PYSEC-2017-44
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.