CVE-2017-12794
Django vulnerable to XSS on 500 pages
Reported by mitre · Published September 7, 2017
Django is fixed in 1.11.5 and 1.10.8 (PyPI)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 1.11.5, 1.10.8 |
| py-django | Alpine | 1.11.11-r0, 1.11.5-r0 |
| py3-django | Alpine | 1.11.5-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | py-django | 0, 0 |
| PyPI | Django | 1.10a1, 1.11a1 |
| alpine | py3-django | 0 |
| n/a | n/a | * |
Timeline
- Sep 7, 2017 CVE Published
- Dec 13, 2019 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
- Oct 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-12794
vulnetix vdb fixes CVE-2017-12794
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-12794/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3559-1 vendor-advisoryx_refsource_UBUNTU
- 100643 vdb-entryx_refsource_BID
- 1039264 vdb-entryx_refsource_SECTRACK
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2017-12794 advisory
- https://github.com/advisories/GHSA-9r8w-6x8c-6jr9 advisory
- https://github.com/django/django/commit/58e08e80e362db79eb0fd775dc81faad90dca47a patch
- https://github.com/django/django/commit/e35a0c56086924f331e9422daa266e907a4784cc patch
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2017-44.yaml advisory
- https://usn.ubuntu.com/3559-1 url
- https://web.archive.org/web/20170927072701/http://www.securitytracker.com/id/1039264 url
- https://web.archive.org/web/20200227150819/http://www.securityfocus.com/bid/100643 url
- https://www.djangoproject.com/weblog/2017/sep/05/security-releases url