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.
Metrics
Affected Vendors & Products
Advisories
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-2906-1 | python-django security update |
Debian DLA |
DLA-3191-1 | python-django security update |
Debian DSA |
DSA-5254-1 | python-django security update |
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 |
GHSA-95rw-fx8r-36v6 | Cross-site Scripting in Django |
Ubuntu USN |
USN-5269-1 | Django vulnerabilities |
Ubuntu USN |
USN-5269-2 | Django vulnerabilities |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Sun, 13 Jul 2025 13:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
epss
|
epss
|
Status: PUBLISHED
Assigner: mitre
Published:
Updated: 2024-08-03T03:21:49.173Z
Reserved: 2022-01-07T00:00:00
Link: CVE-2022-22818
No data.
Status : Modified
Published: 2022-02-03T02:15:07.580
Modified: 2024-11-21T06:47:30.683
Link: CVE-2022-22818
OpenCVE Enrichment
No data.
Debian DLA
Debian DSA
EUVD
Github GHSA
Ubuntu USN