Advisory

GHSA-7rp2-fm2h-wchj

Also known as: CVE-2019-12308, PYSEC-2019-79

Summary

Django Cross-site Scripting in AdminURLFieldWidget

Details

An issue was discovered in Django 1.11 before 1.11.21, 2.1 before 2.1.9, and 2.2 before 2.2.2. The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, an unvalidated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-06-10 18:43 UTC
Modified
2024-09-20 16:09 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.11a1, fixed 1.11.21 (ecosystem)

Fixed versions

1.11.21

Fix

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

django

PyPI · All systems

Affected

  • introduced 2.1a1, fixed 2.1.9 (ecosystem)

Fixed versions

2.1.9

Fix

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

django

PyPI · All systems

Affected

  • introduced 2.2a1, fixed 2.2.2 (ecosystem)

Fixed versions

2.2.2

Fix

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

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