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.
Cross-site Scripting
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
6.1 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 68%
VendorProductVersion
djangoprojectdjango
2.2 ≤
𝑥
< 2.2.27
djangoprojectdjango
3.2 ≤
𝑥
< 3.2.12
djangoprojectdjango
4.0 ≤
𝑥
< 4.0.2
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-django
bullseye (security)
2:2.2.28-1~deb11u2
fixed
bullseye
2:2.2.28-1~deb11u2
fixed
bookworm
3:3.2.19-1+deb12u1
fixed
bookworm (security)
3:3.2.19-1+deb12u1
fixed
sid
3:4.2.16-1
fixed
trixie
3:4.2.16-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-django
jammy
Fixed 2:3.2.12-1
released
impish
Fixed 2:2.2.24-1ubuntu1.3
released
focal
Fixed 2:2.2.12-1ubuntu0.10
released
bionic
Fixed 1:1.11.11-1ubuntu1.16
released
xenial
Fixed 1.8.7-1ubuntu5.15+esm4
released
trusty
Fixed 1.6.11-0ubuntu1.3+esm4
released