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 |
Debian Bugs | 1004752 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-django (PTS) | bullseye (security), bullseye | 2:2.2.28-1~deb11u2 | fixed |
bookworm, bookworm (security) | 3:3.2.19-1+deb12u1 | fixed | |
trixie, sid | 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 | 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)