Name | CVE-2022-22818 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2906-1, DLA-3191-1, DSA-5254-1, ELA-558-1 |
Debian Bugs | 1004752 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-django (PTS) | jessie, jessie (lts) | 1.7.11-1+deb8u17 | fixed |
stretch (security) | 1:1.10.7-2+deb9u17 | fixed | |
stretch (lts), stretch | 1:1.10.7-2+deb9u23 | fixed | |
buster, buster (lts) | 1:1.11.29-1+deb10u12 | fixed | |
buster (security) | 1:1.11.29-1+deb10u11 | fixed | |
bullseye (security), bullseye | 2:2.2.28-1~deb11u2 | fixed | |
bookworm (security), bookworm | 3:3.2.19-1+deb12u1 | fixed | |
sid, trixie | 3:4.2.16-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
python-django | source | jessie | 1.7.11-1+deb8u15 | ELA-558-1 | ||
python-django | source | stretch | 1:1.10.7-2+deb9u15 | DLA-2906-1 | ||
python-django | source | buster | 1:1.11.29-1+deb10u4 | DLA-3191-1 | ||
python-django | source | bullseye | 2:2.2.28-1~deb11u1 | DSA-5254-1 | ||
python-django | source | (unstable) | 2:3.2.12-1 | 1004752 |
https://www.djangoproject.com/weblog/2022/feb/01/security-releases/
https://github.com/django/django/commit/394517f07886495efcf79f95c7ee402a9437bd68 (main)
https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5 (4.0.2)
https://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2 (3.2.12)
https://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6 (2.2.27)