CVE-2021-28957Lxml
Media 6.1 Sin autenticación
Seguir: esta CVE · Lxml · Lxml Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 52
- CVSS 3.1
- 6.1
- EPSS
- 4.0% probabilidad de explotación en 30 días · percentil 91
- Requiere autenticación
- No
- Publicada
- 21 mar 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Qué pasa
An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Lxml.
- 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 | lxml |
< 4.6.3 |
4.6.3 |
pip install "lxml>=4.6.3" |
| PyPI | lxml |
< 4.6.3 |
4.6.3 |
pip install "lxml>=4.6.3" |
Según OSV / GitHub Advisories (GHSA-jq4v-f5q6-mjqq, PYSEC-2021-19). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| lxml | lxml | < 4.6.3 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
| netapp | snapcenter | todas |
| oracle | zfs_storage_appliance_kit | 8.8 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- bugs.launchpad.net Exploit Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.oracle.com Patch Third Party Advisory