CVE-2022-22818Djangoproject Django
Media 6.1 Sin autenticación
Seguir: esta CVE · Djangoproject · Djangoproject Django Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 52
- CVSS 3.1
- 6.1
- EPSS
- 2.8% probabilidad de explotación en 30 días · percentil 87
- Requiere autenticación
- No
- Publicada
- 3 feb 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Django.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | django |
≥ 2.2 < 2.2.27 |
2.2.27 |
pip install "django>=2.2.27" |
| PyPI | django |
≥ 3.2 < 3.2.12 |
3.2.12 |
pip install "django>=3.2.12" |
| PyPI | django |
≥ 4.0 < 4.0.2 |
4.0.2 |
pip install "django>=4.0.2" |
| PyPI | django |
≥ 2.2 < 2.2.27 |
2.2.27 |
pip install "django>=2.2.27" |
| PyPI | django |
≥ 3.2 < 3.2.12 |
3.2.12 |
pip install "django>=3.2.12" |
| PyPI | django |
≥ 4.0 < 4.0.2 |
4.0.2 |
pip install "django>=4.0.2" |
Según OSV / GitHub Advisories (GHSA-95rw-fx8r-36v6, PYSEC-2022-19). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| djangoproject | django | ≥ 2.2 < 2.2.27 |
| djangoproject | django | ≥ 3.2 < 3.2.12 |
| djangoproject | django | ≥ 4.0 < 4.0.2 |
| fedoraproject | fedora | 35 |
| debian | debian_linux | 11.0 |
Boletines oficiales
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · 14 jul 2026 Crítica
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · 9 jul 2026 Crítica
- python312-Django6-6.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10005-1 · 3 ene 2026 Crítica
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- docs.djangoproject.com Patch Third Party Advisory
- groups.google.com
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.djangoproject.com Exploit Patch Third Party Advisory