Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-12794
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:55 UTC · Revision 1
Source evidence
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.
osv:CVE-2017-12794
Complete source record
{
"id": "169a90b19febc6ad8546f21698165a9d141bdbcbd69ca0f32ad8dada0069d737",
"url": "https://osv.dev/vulnerability/CVE-2017-12794",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-12794",
"summary": "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.",
"evidence": "osv:CVE-2017-12794",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2017-12794",
"aliases": [
"CVE-2017-12794",
"GHSA-9r8w-6x8c-6jr9",
"PYSEC-2017-44"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/django/django",
"type": "GIT",
"events": [
{
"introduced": "bd97496d07466f3a940e2fcc114b540ca01cd340"
},
{
"last_affected": "1a34dfcf797640d5d580d261694cb54e6f97c552"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.1"
},
{
"last_affected": "1.10.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.2"
},
{
"last_affected": "1.10.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.3"
},
{
"last_affected": "1.10.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.4"
},
{
"last_affected": "1.10.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.5:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.5"
},
{
"last_affected": "1.10.5"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.6:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.6"
},
{
"last_affected": "1.10.6"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.10.7:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.7"
},
{
"last_affected": "1.10.7"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.11.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.11.1"
},
{
"last_affected": "1.11.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.11.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.11.2"
},
{
"last_affected": "1.11.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.11.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.11.3"
},
{
"last_affected": "1.11.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.11.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.11.4"
},
{
"last_affected": "1.11.4"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"1.10.1",
"1.10.2",
"1.10.3",
"1.10.4",
"1.10.5",
"1.10.6",
"1.10.7",
"1.11.1",
"1.11.2",
"1.11.3",
"1.11.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12794.json"
}
}
],
"modified": "2026-10-24T10:31:00.417974324Z",
"provider": "osv",
"references": [
"https://usn.ubuntu.com/3559-1/",
"https://www.djangoproject.com/weblog/2017/sep/05/security-releases/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:djangoproject:django:1.10.0:*:*:*:*:*:*:*",
"cpe:2.3:a:djangoproject:django:1.11.0:*:*:*:*:*:*:*"
],
"vendor_product": "djangoproject:django",
"extracted_events": [
{
"range": [
{
"introduced": "1.10.0"
},
{
"last_affected": "1.10.0"
},
{
"introduced": "1.11.0"
},
{
"last_affected": "1.11.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-12794",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 439538,
"published_at": "2017-09-07T13:29:00.467+00:00"
}