CVE-2017-12794
MEDIUM 6.1CVSS 3.0Django vulnerable to XSS on 500 pages
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.
- Published
- 7 Sep 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-9r8w-6x8c-6jr9PYSEC-2017-44
- Sources
- NVDJSONOSV GHSA-9r8w-6x8c-6jr9JSONOSV PYSEC-2017-44JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.0:*:*:*:*:*:*:* |
= 1.10.0 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.1:*:*:*:*:*:*:* |
= 1.10.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.2:*:*:*:*:*:*:* |
= 1.10.2 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.3:*:*:*:*:*:*:* |
= 1.10.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.4:*:*:*:*:*:*:* |
= 1.10.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.5:*:*:*:*:*:*:* |
= 1.10.5 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.6:*:*:*:*:*:*:* |
= 1.10.6 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.10.7:*:*:*:*:*:*:* |
= 1.10.7 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.11.0:*:*:*:*:*:*:* |
= 1.11.0 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.11.1:*:*:*:*:*:*:* |
= 1.11.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.11.2:*:*:*:*:*:*:* |
= 1.11.2 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.11.3:*:*:*:*:*:*:* |
= 1.11.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.11.4:*:*:*:*:*:*:* |
= 1.11.4 | |
| OSV | PyPI | django | >= 1.10a1, < 1.10.8 | 1.10.8 |
| OSV | PyPI | django | >= 1.11a1, < 1.11.5 | 1.11.5 |
| OSV | PyPI | django | >= 1.10, < 1.10.8; >= 1.11, < 1.11.5 | 1.10.8, 1.11.5 |
References
- http://www.securityfocus.com/bid/100643 · Third Party Advisory, VDB Entry, WEB
- http://www.securitytracker.com/id/1039264 · Third Party Advisory, VDB Entry, WEB
- https://usn.ubuntu.com/3559-1/ · WEB
- https://www.djangoproject.com/weblog/2017/sep/05/security-releases/ · Patch, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2017-12794 · ADVISORY
- https://github.com/django/django/commit/58e08e80e362db79eb0fd775dc81faad90dca47a · WEB
- https://github.com/django/django/commit/e35a0c56086924f331e9422daa266e907a4784cc · WEB
- https://github.com/advisories/GHSA-9r8w-6x8c-6jr9 · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2017-44.yaml · WEB
- https://web.archive.org/web/20170927072701/http://www.securitytracker.com/id/1039264 · WEB
- https://web.archive.org/web/20200227150819/http://www.securityfocus.com/bid/100643 · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 7 Sep 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Sep 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jan 2019)