CVE-2022-22818
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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 2.2 before 2.2.27, from 3.2 before 3.2.12, from 4.0 before 4.0.2 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 2.2 before 2.2.27, from 3.2 before 3.2.12, from 4.0 before 4.0.2 | NVD |
| fedoraproject fedora | 35 | NVD |
| debian debian_linux | 11.0 | NVD |
| 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.2 | Bitnami Vulnerability Database |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium 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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-22818 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-95rw-fx8r-36v6 changed 2024-09-20 | CC-BY-4.0 |
| NVD | CVE-2022-22818 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-19 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2022-22818 changed 2026-09-08 | Apache-2.0 |