Advisory

PYSEC-2022-19

Also known as: BIT-django-2022-22818, CVE-2022-22818, GHSA-95rw-fx8r-36v6

Summary

The record has no summary.

Details

The {% debug %} template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.

Severity

Not rated by the source.

Dates

Published
2022-02-03 02:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2, fixed 2.2.27, introduced 3.2, fixed 3.2.12, introduced 4.0, fixed 4.0.2 (ecosystem)

Fixed versions

2.2.27, 3.2.12, 4.0.2

Fix

  • Fixed version 2.2.27
    pip install --upgrade django==2.2.27
  • Fixed version 3.2.12
    pip install --upgrade django==3.2.12
  • Fixed version 4.0.2
    pip install --upgrade django==4.0.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