Medium severity · published Feb 3, 2022
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
6.1
CVSS
3.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)3.4% · higher than 89% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
11.0 · source: NVD
DJ
Django · Djangoproject
2.2 before 2.2.27; 3.2 before 3.2.12; 4.0 before 4.0.2 · source: NVD
FE
Fedora · Fedoraproject
35 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-22818
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-22818
Patch
https://docs.djangoproject.com/en/4.0/releases/security/
groups.google.com
https://groups.google.com/forum/#%21forum/django-announce
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
Third Party Advisory
https://security.netapp.com/advisory/ntap-20220221-0003/
Third Party Advisory
https://www.debian.org/security/2022/dsa-5254
Exploit
https://www.djangoproject.com/weblog/2022/feb/01/security-releases/
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-111497
Out-of-Bounds Write in Google Brotli Decoder
