CVE-2022-22818
MEDIUMCVSS 6.1/10EPSS 3.33%
Last modified
CVE-2022-22818 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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.. EPSS estimates a 3.33% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 2.2, < 2.2.27 |
| Djangoproject | Django | >= 3.2, < 3.2.12 |
| Djangoproject | Django | >= 4.0, < 4.0.2 |
| Fedoraproject | Fedora | 35 |
| Debian | Debian Linux | 11.0 |
References
- https://docs.djangoproject.com/en/4.0/releases/security/Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220221-0003/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5254Third Party Advisory
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases/Exploit, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/4.0/releases/security/Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220221-0003/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5254Third Party Advisory
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases/Exploit, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
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.
How severe is CVE-2022-22818?
CVE-2022-22818 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 3.33% probability of exploitation in the next 30 days.
How do I fix CVE-2022-22818?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-22812A CWE-79: Improper Neutralization of Input During Web Page G…6.1
- CVE-2022-22813A CWE-798: Use of Hard-coded Credentials vulnerability exist…9.8
- CVE-2022-22814The System Diagnosis service of MyASUS before 3.1.2.0 allows…9.8
- CVE-2022-22815path_getbbox in path.c in Pillow before 9.0.0 improperly ini…6.5
- CVE-2022-22816path_getbbox in path.c in Pillow before 9.0.0 has a buffer o…6.5
- CVE-2022-22817PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation …9.8
- CVE-2022-22819NXP LPC55S66JBD64, LPC55S66JBD100, LPC55S66JEV98, LPC55S69JB…7.8
- CVE-2022-2282Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. Reason: T…
- CVE-2022-22820Due to the lack of media file checks before rendering, it wa…5.5
- CVE-2022-22821NVIDIA NeMo before 1.6.0 contains a vulnerability in ASR Web…4.4
- CVE-2022-22822addBinding in xmlparse.c in Expat (aka libexpat) before 2.4.…9.8
- CVE-2022-22823build_model in xmlparse.c in Expat (aka libexpat) before 2.4…9.8
Are you affected by CVE-2022-22818?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
