CVE-2026-85061maplibre-gl-js
Sanitización incompleta de atributos HTML en MapLibre GL JS
Crítica 10.0 Sin autenticación
Seguir: esta CVE · maplibre · maplibre-gl-js Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 75
- CVSS 3.1
- 10.0
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 3 sep 2026
- Actualizada
- 9 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Qué pasa
MapLibre GL JS anterior a versión 6.4.1 contiene un fallo en la función DOM.sanitize() que permite que atributos peligrosos como onload u ontoggle eludan la sanitización cuando se proporcionan consecutivamente en cadenas de atribución. Un atacante que controle atribuciones de terceros o personalizadas puede ejecutar código JavaScript arbitrario cuando la víctima renderiza el mapa.
Ver el texto original de NVD (en inglés)
MapLibre GL JS is an interactive vector tile map library for web browsers. Prior to 6.4.1, DOM.sanitize() in src/util/dom.ts iterates elem.attributes as a live NamedNodeMap while removeAttributes() removes attributes from the same collection, shifting indexes and skipping an adjacent dangerous attribute. An attacker who controls untrusted third-party style attribution strings or user-supplied custom attributions can supply consecutive dangerous attributes, causing an attribute such as onload or ontoggle to survive sanitization and execute when the attribution control inserts the content into innerHTML. A victim must render the affected map content for the script to execute. This issue is fixed in version 6.4.1.
Qué hacer
Hay parche · versiones corregidas: 6.4.1, 5.24.1
Actualiza maplibre-gl a versión 6.4.1 o 5.24.1 según tu rama de soporte.
- Aplica la actualización de seguridad del fabricante para maplibre-gl-js.
- 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 | maplibre-gl |
≥ 6.0.0 < 6.4.1 |
6.4.1 |
npm install maplibre-gl@6.4.1 |
| npm | maplibre-gl |
< 5.24.1 |
5.24.1 |
npm install maplibre-gl@5.24.1 |
Según OSV / GitHub Advisories (GHSA-jrc7-96c5-q579). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- maplibre · maplibre-gl-js
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.