{"id":"CVE-2017-12794","published":"2017-09-07T13:00:00Z","modified":"2024-08-05T18:51:07Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.23566,"percentile":0.97855,"provenance":"source"},"cwes":[],"references":[{"url":"https://usn.ubuntu.com/3559-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securityfocus.com/bid/100643","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securitytracker.com/id/1039264","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.djangoproject.com/weblog/2017/sep/05/security-releases/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.6,"factors":[{"name":"EPSS percentile","points":19.57},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"nuclei":[{"id":"CVE-2017-12794","name":"Django Debug Page - Cross-Site Scripting","severity":"medium","path":"http/cves/2017/CVE-2017-12794.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12794.yaml"}],"provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=1.10a1, <1.10.8",">=1.11a1, <1.11.5",">=1.10, <1.10.8",">=1.11, <1.11.5"],"patched":["1.10.8","1.11.5"],"from":["GHSA-9r8w-6x8c-6jr9","PYSEC-2017-44"],"provenance":"source"}],"summary":{"text":"The flaw is an XSS issue in Django's technical 500 debug page, where HTML autoescaping was disabled in part of the template in Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5. An attacker can inject script through that page when the right circumstances exist, and the exposure is limited because the page only appears when DEBUG = True, a setting that should not be enabled in production.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:39:52Z"},"euvd":{"id":"EUVD-2017-0025","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-cve-2016-6186","parents":[{"from":"CVE-2016-6186","to":"CVE-2017-12794","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/views/debug.py"],"commits":["https://github.com/django/django/commit/f68e5a99164867ab0e071a936470958ed867479d","https://github.com/django/django/commit/d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158","https://github.com/django/django/commit/58e08e80e362db79eb0fd775dc81faad90dca47a","https://github.com/django/django/commit/e35a0c56086924f331e9422daa266e907a4784cc"],"basis":"shared function","functions":["default_urlconf"]}]}],"packageHistory":[{"cve":"CVE-2016-9014","published":"2016-12-09","fixed":"1.10.3","kev":false},{"cve":"CVE-2017-7233","published":"2017-04-04","fixed":"1.10.7","kev":false,"link":{"from":"CVE-2017-7233","to":"CVE-2017-12794","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"1.10.7","toFixed":"1.10.8","daysApart":156}]}},{"cve":"CVE-2017-7234","published":"2017-04-04","fixed":"1.10.7","kev":false},{"cve":"CVE-2017-12794","published":"2017-09-07","fixed":"1.11.5","kev":false},{"cve":"CVE-2018-6188","published":"2018-02-05","fixed":"2.0.2","kev":false},{"cve":"CVE-2018-7536","published":"2018-03-09","fixed":"2.0.3","kev":false},{"cve":"CVE-2018-7537","published":"2018-03-09","fixed":"2.0.3","kev":false}],"package":"PyPI:Django"}}