PT-2022-1456

CVE-2022-22818

·

Published

2022-02-01

·

Updated

2026-10-31

Description by

CVSS 2.0
6.4
Medium
MetricsAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Django versions 2.2 before 2.2.27 Django versions 3.2 before 3.2.12 Django versions 4.0 before 4.0.2
Description The {% debug %} template tag in Django does not properly encode the current context, which may lead to XSS. This issue is related to the framework's failure to protect the web page structure, allowing a remote attacker to conduct a cross-site scripting attack.
Recommendations For Django versions 2.2 before 2.2.27, update to version 2.2.27 or later. For Django versions 3.2 before 3.2.12, update to version 3.2.12 or later. For Django versions 4.0 before 4.0.2, update to version 4.0.2 or later. As a temporary workaround, consider disabling the {% debug %} template tag until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-95RW-FX8R-36V6
ALT-PU-2022-1344
ALT-PU-2022-1372
BIT-DJANGO-2022-22818
CLEANSTART-2024-UH86790
DLA-2906-1
DLA-3191-1
DSA-5254-1
MGASA-2022-0104
OESA-2022-1530
OESA-2022-2055
OPENSUSE-SU-2023:0005-1
OPENSUSE-SU-2024:11804-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2025:14662-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11235-1
OPENSUSE-SU-2026:11270-1
PYSEC-2022-19
RHSA-2022:5498
RHSA-2022:8506
RHSA-2022:8853
RHSA-2022:8872
RLSA-2022:5498
RLSA-2022:8506
SUSE-SU-2022:0285-1
SUSE-SU-2022:0286-1
USN-5269-1
USN-5269-2
Found an issue in the description? Have something to add? Feel free to write us 👾