Skip to main content
← All vulnerabilities
CVE-2022-22818GHSA-95RW-FX8R-36V6BIT-DJANGO-2022-22818PYSEC-2022-19

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 conte

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.27, 3.2.12, 4.0.2
1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    From 2.2 · fixed in 2.2.27

  • djangoPyPI

    From 3.2 · fixed in 3.2.12

  • djangoPyPI

    From 4.0 · fixed in 4.0.2

  • djangoPyPI

    From 2.2 · fixed in 2.2.27; From 3.2 · fixed in 3.2.12; From 4.0 · fixed in 4.0.2

References 7

groups.google.com

docs.djangoproject.com

djangoproject.com

lists.fedoraproject.org

security.netapp.com

debian.org

GitHub · Prikalel/django-xss-example