CVE-2022-22818
MEDIUM6.1EPSS 1.0%python-django - security update
Published: 2/4/2022Modified: 4/28/2026
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.
Affected packages (6)
- Bitnami/django>= 2.2.0, < 2.2.27, >= 3.2.0, < 3.2.12, >= 4.0.0, < 4.0.2
- Debian/python-djangofrom 0, < 2:2.2.28-1~deb11u1
- Debian/python-djangofrom 0, < 1:1.10.7-2+deb9u15
- Debian/python-djangofrom 0, < 2:2.2.28-1~deb11u1
- PyPI/django>= 2.2, < 2.2.27
- PyPI/django>= 2.2, < 2.2.27, >= 3.2, < 3.2.12, >= 4.0, < 4.0.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (19)
- ADVISORYhttps://github.com/advisories/GHSA-95rw-fx8r-36v6
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-22818
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-22818
- ADVISORYhttps://www.djangoproject.com/weblog/2022/feb/01/security-releases/
- PATCHhttps://github.com/django/django
- WEBhttps://docs.djangoproject.com/en/4.0/releases/security
- WEBhttps://docs.djangoproject.com/en/4.0/releases/security/
- WEBhttps://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5
- WEBhttps://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2
- WEBhttps://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-19.yaml
- WEBhttps://groups.google.com/forum/#%21forum/django-announce
- WEBhttps://groups.google.com/forum/#!forum/django-announce
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- WEBhttps://security.netapp.com/advisory/ntap-20220221-0003
- WEBhttps://security.netapp.com/advisory/ntap-20220221-0003/
- WEBhttps://www.debian.org/security/2022/dsa-5254
- WEBhttps://www.djangoproject.com/weblog/2022/feb/01/security-releases