Advisory

PYSEC-2019-79

Also known as: CVE-2019-12308, GHSA-7rp2-fm2h-wchj

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2019-06-03 17:29 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.1, fixed 2.1.9, introduced 1.11, fixed 1.11.21, introduced 2.2, fixed 2.2.2 (ecosystem)

Fixed versions

2.1.9, 1.11.21, 2.2.2

Fix

  • Fixed version 2.1.9
    pip install --upgrade django==2.1.9
  • Fixed version 1.11.21
    pip install --upgrade django==1.11.21
  • 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: PyPA Advisory Database · CC BY 4.0

Sources & licences