Advisory

GHSA-2m34-jcjv-45xf

Also known as: BIT-django-2020-13596, CVE-2020-13596, PYSEC-2020-32

Summary

XSS in Django

Details

An issue was discovered in Django version 2.2 before 2.2.13 and 3.0 before 3.0.7. Query parameters generated by the Django admin ForeignKeyRawIdWidget were not properly URL encoded, leading to a possibility of an XSS attack.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-06-05 16:24 UTC
Modified
2024-09-20 15:46 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2a1, fixed 2.2.13 (ecosystem)

Fixed versions

2.2.13

Fix

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

django

PyPI · All systems

Affected

  • introduced 3.0a1, fixed 3.0.7 (ecosystem)

Fixed versions

3.0.7

Fix

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

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