CVE-2022-22818
JSON

6.1medium

Cross-site Scripting in Django

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
2.76% (higher than 87% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-95rw-fx8r-36v6BIT-DJANGO-2022-22818PYSEC-2022-19

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
django (PyPI)from 2.2 before 2.2.27, from 3.2 before 3.2.12, from 4.0 before 4.0.2GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 2.2 before 2.2.27, from 3.2 before 3.2.12, from 4.0 before 4.0.2NVD
fedoraproject fedora35NVD
debian debian_linux11.0NVD
django (Bitnami)from 2.2.0 before 2.2.27, from 3.2.0 before 3.2.12, from 4.0.0 before 4.0.2Bitnami Vulnerability Database

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

La etiqueta de plantilla {% debug %} en Django versiones 2.2 anteriores a 2.2.27, 3.2 anteriores a 3.2.12 y 4.0 anteriores a 4.0.2, no codifica correctamente el contexto actual. Esto puede conllevar a un ataque de tipo XSS

References

https://groups.google.com/forum/#%21forum/django-announceweb
https://docs.djangoproject.com/en/4.0/releases/security/advisory, patch, third-party-advisory, web
https://www.djangoproject.com/weblog/2022/feb/01/security-releases/advisory, article, exploit, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/vendor-advisory, web
https://security.netapp.com/advisory/ntap-20220221-0003/advisory, third-party-advisory
https://www.debian.org/security/2022/dsa-5254advisory, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2022-22818advisory, web
https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5web
https://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2web
https://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6web
https://docs.djangoproject.com/en/4.0/releases/securityweb
https://github.com/advisories/GHSA-95rw-fx8r-36v6advisory

Sources

SourceRecordLicence
CVE ListCVE-2022-22818 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-95rw-fx8r-36v6 changed 2024-09-20CC-BY-4.0
NVDCVE-2022-22818 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-19 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2022-22818 changed 2026-09-08Apache-2.0