CVE-2021-26540Apostrophecms Sanitize-html
Media 5.3 Sin autenticación
Seguir: esta CVE · Apostrophecms · Apostrophecms Sanitize-html Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.8% probabilidad de explotación en 30 días · percentil 79
- Requiere autenticación
- No
- Publicada
- 8 feb 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Qué pasa
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".
Qué hacer
- Aplica la actualización de seguridad del fabricante para Sanitize-html.
- 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 |
|---|---|---|---|---|
| npm | sanitize-html |
< 2.3.2 |
2.3.2 |
npm install sanitize-html@2.3.2 |
Según OSV / GitHub Advisories (GHSA-mjxr-4v3x-q3m4). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| apostrophecms | sanitize-html | < 2.3.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- advisory.checkmarx.net Exploit Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory