Live threats

All CVEs / Djangoproject

CVE-2017-12794Djangoproject Django

Medium 6.1 No auth neededHigh EPSS

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
djangoprojectdjango1.10.0
djangoprojectdjango1.10.1
djangoprojectdjango1.10.2
djangoprojectdjango1.10.3
djangoprojectdjango1.10.4
djangoprojectdjango1.10.5
djangoprojectdjango1.10.6
djangoprojectdjango1.10.7
djangoprojectdjango1.11.0
djangoprojectdjango1.11.1
djangoprojectdjango1.11.2
djangoprojectdjango1.11.3
djangoprojectdjango1.11.4

Official advisories

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.