llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · nukeviet/nukeviet

GHSA-CFPF-HHXH-C8R6

Stored XSS in banners block via HTML entity decoding of sanitized banner content

Sin parche publicado
Descargar PNG JSON
CVSS 4.0
4.8
Media
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición50 dDesde la divulgación, 1 oct 2026, 8:31 p. m.
Detección48 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 4.0 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Calma e higiene de parches: mi fórmula secreta.Bien priorizada, bien dormida.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
2 oct 26
19 nov 26
21 nov 26
2 oct 26
14 oct 26
27 oct 26
8 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-CFPF-HHXH-C8R6 divulgada · CVSS 4.8 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Impact

This is a stored Cross-Site Scripting (XSS) vulnerability in the global banners block (`modules/banners/blocks/global.banners.php`).

An administrator with rights on the Banners module can store HTML that executes JavaScript in the browser of every visitor who views a page containing the banners block.
Victims include anonymous visitors, logged-in users and higher-privileged administrators (general administrators and super administrators).
Because the admin panel is served from the same origin as the site, a script running in an administrator's browser can perform administrative actions with that administrator's session.

The banner content (`bannerhtml`) is correctly sanitized when it is saved: any markup that is not a valid, allowed tag is HTML-encoded (for example `<` becomes `&lt;`).
However, the block calls `html_entity_decode()` on this already-sanitized value right before rendering it.
This reverses the encoding applied by the sanitizer and turns neutralized text back into live HTML, so the sanitization happens before the final decoding step and is bypassed.

Two example payloads, entered in the banner content editor:

  • `<img src=x onerror=alert(1)` (a tag without a closing `>`), which the sanitizer stores as the text `&lt;img src=x onerror=alert(1)`.
  • The text `<img src=x onerror=alert(1)>` typed as plain text in the WYSIWYG editor, which the editor submits as `&lt;img src=x onerror=alert(1)&gt;`.

In both cases the stored value is harmless, but the block decodes it into a real `<img>` tag with an `onerror` handler and the script executes.

Exploitation requires an authenticated administrator account with rights on the Banners module.
Regular users submitting advertisements from the site (`addads`) cannot set banner HTML content and are not able to exploit this issue.

Patches

The vulnerability is fixed in NukeViet 4.6.03.
The fix removes the `html_entity_decode()` call so the block outputs the sanitized banner content exactly as stored.
The stored value is already filtered HTML, and the XML cache used by the block (DOMDocument / SimpleXML) preserves it without change, so no decoding is needed.

All versions from 4.1.01 up to and including 4.6.02 are affected.
Users should upgrade to 4.6.03 or later.
No data migration is required: existing banners are rendered safely as soon as the patched code is deployed.

Workarounds

If upgrading is not immediately possible, apply one of the following:

  • Remove these lines from `modules/banners/blocks/global.banners.php`:

```php
if (!empty($banners['bannerhtml'])) {
$banners['bannerhtml'] = html_entity_decode($banners['bannerhtml'], ENT_COMPAT | ENT_HTML401, strtoupper($global_config['site_charset']));
}
```

  • Grant rights on the Banners module only to fully trusted administrators.
  • Remove the banners block from the site layout until the patch is applied.

To check for existing malicious content, review banners whose HTML content contains encoded markup, for example:

SELECT id, title, bannerhtml FROM nv4_banners_rows WHERE bannerhtml LIKE '%&lt;%';

Replace `nv4` with your database table prefix.

References
  • Fix commit: https://github.com/nukeviet/nukeviet/commit/00c040806b54f50a963d6f4f1b1bb645ee260ccd
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'): https://cwe.mitre.org/data/definitions/79.html
  • CWE-180: Incorrect Behavior Order: Validate Before Canonicalize: https://cwe.mitre.org/data/definitions/180.html

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

Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:N
AltoBajoNinguno
Integridad (sistema)VI:N
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:L
AltoBajoNinguno
Integridad (posterior)SI:L
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
4.2/ 10Medio
Vector 4.2 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
nukeviet/nukeviet≥ 4.1.01 ≤ 4.6.02
4.1.01
4.6.02
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistnukeviet/nukeviet
Sin parche — — —
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/nukeviet/nukeviet/security/advisories/GHSA-cfpf-hhxh-c8r6

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