{"id":"PYSEC-2022-19","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.","aliases":["BIT-django-2022-22818","CVE-2022-22818","GHSA-95rw-fx8r-36v6"],"modified":"2023-12-06T01:01:58.226668Z","published":"2022-02-03T02:15:00Z","references":[{"type":"WEB","url":"https://docs.djangoproject.com/en/4.0/releases/security/"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2022/feb/01/security-releases/"},{"type":"WEB","url":"https://groups.google.com/forum/#!forum/django-announce"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-95rw-fx8r-36v6"}],"affected":[{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2"},{"fixed":"2.2.27"},{"introduced":"3.2"},{"fixed":"3.2.12"},{"introduced":"4.0"},{"fixed":"4.0.2"}]}],"versions":["2.2","2.2.1","2.2.10","2.2.11","2.2.12","2.2.13","2.2.14","2.2.15","2.2.16","2.2.17","2.2.18","2.2.19","2.2.2","2.2.20","2.2.21","2.2.22","2.2.23","2.2.24","2.2.25","2.2.26","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9","3.2","3.2.1","3.2.10","3.2.11","3.2.2","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","4.0","4.0.1"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/django/PYSEC-2022-19.yaml"}}],"schema_version":"1.7.3"}