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
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
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
