{"id":"CVE-2022-22818","aliases":["BIT-django-2022-22818","GHSA-95rw-fx8r-36v6","PYSEC-2022-19"],"url":"https://o3.security/vulnerability/CVE-2022-22818","summary":"Cross-site Scripting in Django","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.","published":"2022-02-03T00:00:00Z","modified":"2026-10-08T02:46:07.036552009Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":3,"affectedPackages":[{"ecosystem":"PyPI","name":"django","fixedVersion":"2.2.27"},{"ecosystem":"PyPI","name":"django","fixedVersion":"3.2.12"},{"ecosystem":"PyPI","name":"django","fixedVersion":"4.0.2"}],"fix":{"url":"https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5","label":"django/django@0142204"},"references":[{"type":"WEB","url":"https://docs.djangoproject.com/en/4.0/releases/security/"},{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22818.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22818"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220221-0003/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5254"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2022/feb/01/security-releases/"},{"type":"WEB","url":"https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5"},{"type":"WEB","url":"https://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2"},{"type":"WEB","url":"https://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6"},{"type":"WEB","url":"https://docs.djangoproject.com/en/4.0/releases/security"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-95rw-fx8r-36v6"},{"type":"PACKAGE","url":"https://github.com/django/django"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-19.yaml"},{"type":"WEB","url":"https://groups.google.com/forum/#!forum/django-announce"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220221-0003"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2022/feb/01/security-releases"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-08T02:46:07.036552009Z"}}