GHSA-XHX7-W88J-2J88
Notification length check parses message as HTML in the admin UI
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-XHX7-W88J-2J88 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Remediación | Parche 4.34.1 | apostrophe · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Impact
The admin UI notification component (`AposNotification.vue`) displays notification messages as escaped text. However, to decide whether to apply the "long notification" style, it assigned the localized message to the `innerHTML` of a detached `div` and measured its `textContent`. An element created with `document.createElement` belongs to the live document, so event-handler payloads such as `<img src=x onerror=...>` execute even though the element is never attached or displayed.
This check is a leftover from before May 2021, when notifications were rendered with `v-html`. Rendering switched to escaped text, but the measurement did not.
Markup can reach this code through:
- the notification REST API (`POST /api/v1/@apostrophecms/notification`), which only creates notifications for the logged-in user and is protected by CSRF checks, so this route amounts to self-XSS;
- server-side notifications whose interpolated values contain user-controlled text, since i18next interpolation is configured with `escapeValue: false`. We found no notification in core or Pro modules that interpolates attacker-controlled text into a notification shown to another user, but third-party project code could.
No known practical exploit; found by the maintainers during review of a customer penetration test.
Patches
The length check now measures the message string directly. Notification messages are never parsed as HTML.
Workarounds
None needed for core; avoid interpolating untrusted text into server-side notifications until upgraded.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmapostrophe |
Corregida | 4.34.1 | 0 d | 4.34.1 no afectada |
4.34.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-xhx7-w88j-2j88Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
