CVE-2022-22818: Cross-site Scripting in Django
(updated )
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.
References
- docs.djangoproject.com/en/4.0/releases/security
- github.com/advisories/GHSA-95rw-fx8r-36v6
- github.com/django/django
- github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5
- github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2
- github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-19.yaml
- groups.google.com/forum/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- nvd.nist.gov/vuln/detail/CVE-2022-22818
- security.netapp.com/advisory/ntap-20220221-0003
- www.debian.org/security/2022/dsa-5254
- www.djangoproject.com/weblog/2022/feb/01/security-releases
Detect and mitigate CVE-2022-22818 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →