CVE-2022-22818

django: Possible XSS via '{% debug %}' template tag

Published Feb 3, 2022 CVSS 3.1 · 6.1 Medium EPSS 3.4% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2906-1 python-django security update
Debian DLA Debian DLA DLA-3191-1 python-django security update
Debian DSA Debian DSA DSA-5254-1 python-django security update
EUVD EUVD EUVD-2022-0086 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.
Github GHSA Github GHSA GHSA-95rw-fx8r-36v6 Cross-site Scripting in Django
Ubuntu USN Ubuntu USN USN-5269-1 Django vulnerabilities
Ubuntu USN Ubuntu USN USN-5269-2 Django vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00548}

epss

{'score': 0.00621}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 3:21 AM
Reserved
Jan 7, 2022, 12:00 AM
Status
Modified
Published
Feb 3, 2022, 2:15 AM
Modified
Jun 17, 2026, 4:29 AM
Severity
Moderate
Public date
Feb 1, 2022, 8:00 AM