Advisory

GHSA-9r8w-6x8c-6jr9

Also known as: CVE-2017-12794, PYSEC-2017-44

Summary

Django vulnerable to XSS on 500 pages

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-01-04 17:50 UTC
Modified
2024-09-18 16:07 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.10a1, fixed 1.10.8 (ecosystem)

Fixed versions

1.10.8

Fix

  • Fixed version 1.10.8
    pip install --upgrade django==1.10.8

django

PyPI · All systems

Affected

  • introduced 1.11a1, fixed 1.11.5 (ecosystem)

Fixed versions

1.11.5

Fix

  • Fixed version 1.11.5
    pip install --upgrade django==1.11.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences