CVE-2017-12794Djangoproject Django
Medium 6.1 No auth neededHigh EPSS
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.0
- 6.1
- EPSS
- 23.6% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Sep 7, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 1.10a1 < 1.10.8 |
1.10.8 |
pip install "django>=1.10.8" |
| PyPI | django |
≥ 1.11a1 < 1.11.5 |
1.11.5 |
pip install "django>=1.11.5" |
| PyPI | django |
≥ 1.10 < 1.10.8 |
1.10.8 |
pip install "django>=1.10.8" |
| PyPI | django |
≥ 1.11 < 1.11.5 |
1.11.5 |
pip install "django>=1.11.5" |
Per OSV / GitHub Advisories (GHSA-9r8w-6x8c-6jr9, PYSEC-2017-44). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | 1.10.0 |
| djangoproject | django | 1.10.1 |
| djangoproject | django | 1.10.2 |
| djangoproject | django | 1.10.3 |
| djangoproject | django | 1.10.4 |
| djangoproject | django | 1.10.5 |
| djangoproject | django | 1.10.6 |
| djangoproject | django | 1.10.7 |
| djangoproject | django | 1.11.0 |
| djangoproject | django | 1.11.1 |
| djangoproject | django | 1.11.2 |
| djangoproject | django | 1.11.3 |
| djangoproject | django | 1.11.4 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- www.securitytracker.com Third Party Advisory VDB Entry
- usn.ubuntu.com
- www.djangoproject.com Patch Vendor Advisory