CVE-2022-22818 · MEDIUM (CVSS 6.1)
Summary: 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.
Details
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.
Severity
MEDIUM (CVSS 6.1) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected packages
- PyPI django [2.2 – 2.2.27]
- PyPI django [3.2 – 3.2.12]
- PyPI django [4.0 – 4.0.2]
- GIT github.com/django/django [635d53a86a36cde7866b9caefeb64d809e6bfcd9 – e541f2d05b88e58c18b82b622aacc38d670eb5f6] [b6475d7d7940f3ce575e0b0f2d83e517f899b4cf – fdf209eab8949ddc345aa0212b349c79fc6fdebb] [ef62a3a68c9d558486145a42c0d71ea9a76add9e – b12be7ad6b83ffc512252953ef28d0d099f96ad7]
References
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22818.json
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- https://nvd.nist.gov/vuln/detail/CVE-2022-22818
- https://security.netapp.com/advisory/ntap-20220221-0003/
- https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases/