CVE
CVE-2022-22818
publisheddjango: Possible XSS via '{% debug %}' template tag
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Debian | bullseye | python-django | Advisory build | 2:2.2.28-1~deb11u1 | DSA-5254-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-Djangonoarch | Advisory build | 2.2.28-bp153.2.3.1 | OPENSUSE-SU-2023:0005-1 |
| Ubuntu | bionic | python-django | Advisory build | 1:1.11.11-1ubuntu1.16 | USN-5269-1 |
| Rocky Linux | 8 | libdbsrc | Listed in advisory | Not stated | RLSA-2022:5498 |
| Alpine Linux | v3.16 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
Show 92 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-django | Fixed | 3.2.12-r0 | Package fix record |
| Debian | buster | python-django | Advisory build | 1:1.11.29-1+deb10u4 | DLA-3191-1 |
| Debian | stretch | python-django | Advisory build | 1:1.10.7-2+deb9u15 | DLA-2906-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangoaarch64 | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangoppc64le | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangos390x | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangox86_64 | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4aarch64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4ppc64le | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4s390x | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4x86_64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangoaarch64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangoppc64le | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangos390x | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangox86_64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4aarch64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4ppc64le | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4s390x | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4x86_64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangoaarch64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangoppc64le | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangos390x | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangox86_64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4aarch64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4ppc64le | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4s390x | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4x86_64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6aarch64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6ppc64le | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6s390x | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6x86_64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoaarch64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoppc64le | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangos390x | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangox86_64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4aarch64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4ppc64le | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4s390x | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4x86_64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5aarch64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5ppc64le | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5s390x | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5x86_64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6aarch64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6ppc64le | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6s390x | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6x86_64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4aarch64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4ppc64le | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4s390x | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4x86_64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5aarch64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5ppc64le | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5s390x | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5x86_64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangoaarch64 | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangoppc64le | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangos390x | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangox86_64 | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangoaarch64 | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangoppc64le | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangos390x | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangox86_64 | Advisory build | 4.0.2-1.1 | OPENSUSE-SU-2024:11804-1 |
| Ubuntu | bionic | python-django-common | Advisory build | 1:1.11.11-1ubuntu1.16 | USN-5269-1 |
| Ubuntu | bionic | python3-django | Advisory build | 1:1.11.11-1ubuntu1.16 | USN-5269-1 |
| Ubuntu | esm | python-django | Advisory build | 1.6.11-0ubuntu1.3+esm4 | USN-5269-2 |
| Ubuntu | focal | python-django | Advisory build | 2:2.2.12-1ubuntu0.10 | USN-5269-1 |
| Ubuntu | focal | python3-django | Advisory build | 2:2.2.12-1ubuntu0.10 | USN-5269-1 |
| Ubuntu | xenial | python-django | Advisory build | 1.8.7-1ubuntu5.15+esm4 | USN-5269-2 |
| Ubuntu | xenial | python-django-common | Advisory build | 1.8.7-1ubuntu5.15+esm4 | USN-5269-2 |
| Ubuntu | xenial | python3-django | Advisory build | 1.8.7-1ubuntu5.15+esm4 | USN-5269-2 |
| Rocky Linux | 8 | libdbsrc | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
6- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- FEDORA-2022-e7fd530688 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- https://security.netapp.com/advisory/ntap-20220221-0003/
- DSA-5254 https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f7f16c7a2d91401124b57884f70e40273a80e0811ebf83afa73a2e29afdec5e1
- Ingested
- 23 Sep 2026, 07:58:34 UTC
- Source record
- Official CVE record