llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · dompurify

GHSA-CJ63-JHHR-WCXV

DOMPurify USE_PROFILES prototype pollution allows event handlers

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -29 d de la divulgación
Exposición231 dDesde la divulgación, 2 abr 2026, 10:45 p. m.
Detección228 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 3.3.2
Monitoreo
Detectada
5 mar 26
3 abr 26
10 sept 26
17 nov 26
21 nov 26
5 mar 26
9 may 26
13 jul 26
16 sept 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.3.2 dompurify · -29 d desde divulgación
Divulgación Publicada GHSA-CJ63-JHHR-WCXV divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

## Summary
When `USE_PROFILES` is enabled, DOMPurify rebuilds `ALLOWED_ATTR` as a plain array before populating it with the requested allowlists. Because the sanitizer still looks up attributes via `ALLOWED_ATTR[lcName]`, any `Array.prototype` property that is polluted also counts as an allowlisted attribute. An attacker who can set `Array.prototype.onclick = true` (or a runtime already subject to prototype pollution) can thus force DOMPurify to keep event handlers such as `onclick` even when they are normally forbidden. The provided PoC sanitizes `<img onclick=...>` with `USE_PROFILES` and adds the sanitized output to the DOM; the polluted prototype allows the event handler to survive and execute, turning what should be a blocklist into a silent XSS vector.

## Impact
Prototype pollution makes DOMPurify accept dangerous event handler attributes, which bypasses the sanitizer and results in DOM-based XSS once the sanitized markup is rendered.

## Credits
Identified by Cantina’s Apex (https://www.cantina.security).

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
dompurify< 3.3.2
3.3.2
3.4.18
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmdompurify
Corregida 3.3.2 -29 d 3.4.18 no afectada
Versiones corregidas3.3.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/cure53/DOMPurify/security/advisories/GHSA-cj63-jhhr-wcxv
Otrahttps://github.com/cure53/DOMPurify
Otrahttps://github.com/cure53/DOMPurify/releases/tag/3.3.2

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.