
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-22818 is a security vulnerability discovered in Django's {% debug %} template tag affecting versions 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2. The vulnerability was disclosed on February 1, 2022, and involves improper encoding of the current context in the debug template tag, which could potentially lead to Cross-Site Scripting (XSS) attacks (Django Security).
The vulnerability exists in the {% debug %} template tag implementation where it failed to properly encode the current context when displaying debug information. The issue has been assigned a CVSS v3.1 base score of 6.1 (MEDIUM) with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NetApp Advisory).
When successfully exploited, this vulnerability could lead to Cross-Site Scripting (XSS) attacks, potentially allowing attackers to execute malicious scripts in the context of the user's browser session. This could result in the disclosure of sensitive information or modification of web content presented to users (Django Security).
The vulnerability has been fixed in Django versions 4.0.2, 3.2.12, and 2.2.27. The fix ensures that {% debug %} no longer outputs information when the DEBUG setting is False, and all context variables are correctly escaped when the DEBUG setting is True. Users are strongly encouraged to upgrade to these patched versions (Django Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."