{"id":"CVE-2022-22818","published":"2022-02-03T00:00:00Z","modified":"2024-08-03T03:21:49Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03356,"percentile":0.89003,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":[]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":[]},{"url":"https://www.djangoproject.com/weblog/2022/feb/01/security-releases/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220221-0003/","tags":[]},{"url":"https://www.debian.org/security/2022/dsa-5254","tags":["vendor-advisory"]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":17.8},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-12-10","earliestUrl":"https://github.com/Prikalel/django-xss-example","repos":[{"name":"Prikalel/django-xss-example","url":"https://github.com/Prikalel/django-xss-example","stars":3,"created":"2022-12-10"}]},"first":{"date":"2022-12-10","source":"PoC-in-GitHub","url":"https://github.com/Prikalel/django-xss-example"},"provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=2.2, <2.2.27",">=3.2, <3.2.12",">=4.0, <4.0.2"],"patched":["2.2.27","3.2.12","4.0.2"],"from":["GHSA-95rw-fx8r-36v6","PYSEC-2022-19"],"provenance":"source"}],"summary":{"text":"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 fails to properly encode the current template context. An attacker may be able to trigger cross-site scripting through this output, with the exact conditions required left unspecified in the available data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:30Z"},"euvd":{"id":"EUVD-2022-0086","exploited":false,"provenance":"source"}}