CVE-2022-22818
CVSS v3
6.1
MEDIUM
EPSS Score
3.4 %
exploit probability, as of 2026-10-12
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for django. Watch django in CVE Watch Free account · no credit card
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- djangoPyPIfrom 2.2 · fixed in 2.2.27
- djangoBitnamifrom 2.2.0 · fixed in 2.2.27
Vendor advisories
django: Possible XSS via '{% debug %}' template tag
python-django as a component of Red Hat Ansible Automation Platform 1.2 · python-django as a component of Red Hat Ansible Automation Platform 2 · django as a component of Red Hat Ansible Tower 3
Red Hat Security Advisory: Red Hat OpenStack Platform 16.1.9 (python-django20) security update
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2.4 (python-django20) security update
Red Hat Security Advisory: Satellite 6.12 Release
Red Hat Security Advisory: Satellite 6.11 Release
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.
Technical details
- Published
- 2022-02-03
Frequently asked questions
What is CVE-2022-22818?
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.
Is CVE-2022-22818 actively exploited?
Active exploitation of CVE-2022-22818 has not been confirmed. Its EPSS score was 3.4% on 2026-10-12, the estimated probability of exploitation in the next 30 days.
What is the CVSS score for CVE-2022-22818?
CVE-2022-22818 has a CVSS v3 base score of 6.1 (MEDIUM severity).
Running django? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE Watch
No credit card required · 50 free checks/month · Free API key
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.