{"cve":"CVE-2022-22818","nvd":{"published":"2022-02-03T02:15:07.580","modified":"2026-06-17T04:29:05.647","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://docs.djangoproject.com/en/4.0/releases/security/","https://groups.google.com/forum/#%21forum/django-announce","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","https://security.netapp.com/advisory/ntap-20220221-0003/","https://www.debian.org/security/2022/dsa-5254"],"products":["debian:debian_linux","djangoproject:django","fedoraproject:fedora"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-22818","score":0.03356,"percentile":0.88711,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-95rw-fx8r-36v6","url":"https://osv.dev/vulnerability/GHSA-95rw-fx8r-36v6","summary":"Cross-site Scripting in Django","modified":"2024-09-20T15:47:46.984048Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.27"],"fixed":["2.2.27"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2 <3.2.12"],"fixed":["3.2.12"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.0 <4.0.2"],"fixed":["4.0.2"]}]},{"id":"PYSEC-2022-19","url":"https://osv.dev/vulnerability/PYSEC-2022-19","summary":"","modified":"2023-12-06T01:01:58.226668Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.27",">=3.2 <3.2.12",">=4.0 <4.0.2"],"fixed":["2.2.27","3.2.12","4.0.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}