Alta

NukeViet: Multiple Anti-XSS Filter Bypasses Leading to Stored XSS in News Module

  • Publicada: 13.07.2026
  • Actualizado: 11.10.2026 10:22

Summary

Two filter-bypass techniques in NukeViet\Core\Request::filterAttr() and NukeViet\Core\Request::unhtmlentities() allow a low-privileged user (any account with news post permission) to store and serve arbitrary JavaScript to any visitor of the affected page.

Affected Component

vendor/vinades/nukeviet/Core/Request.php — class NukeViet\Core\Request

Vulnerability Details

Bypass 1 — Form Feed character prefix (\x0C) before event handler name

The filterAttr() method blocks event-handler attributes using:

php
preg_match('/^on/i', $attrSubSet[0])

PHP's trim() does not strip the ASCII Form Feed character (\x0C, U+000C). An attacker can prefix the attribute name with \x0C so that \x0Conerror does not match /^on/. The HTML5 browser parser treats \x0C as a valid whitespace separator and correctly activates the event handler.

Proof-of-concept payload (URL-encoded POST body field bodyhtml):

<img src="x" %0Conerror="alert('XSS')">

Bypass 2 — Decimal HTML entity tab (&#9;) inside javascript: URI

unhtmlentities() strips the hex-encoded tab &#x09; via str_ireplace, but did not strip its decimal equivalent &#9;. The keyword-blocking regex /j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t/si uses \s* which does not match HTML entities. The value jav&#9;ascript:alert() passes the filter, is stored in the database, and is decoded by the browser into a working javascript: URI.

Proof-of-concept payload (inside a Markdown-style link):

[Click me](jav&#9;ascript:alert('XSS'))

Impact

An authenticated attacker with news-posting permission can inject persistent JavaScript that executes in the browser of any user (including administrators) who views the affected article. This enables session cookie theft, credential harvesting, defacement, and further privilege escalation.

Patches

Fixed in commit <commit-sha> by modifying vendor/vinades/nukeviet/Core/Request.php:

  1. filterAttr() — strip all ASCII control characters (\x00–\x20) from the attribute name before the /^on/ check:

    php
    $attrSubSet[0] = preg_replace('/[\x00-\x20]/', '', strtolower($attrSubSet[0]));
  2. unhtmlentities() — strip decimal HTML entities for all ASCII control characters (0–31) before the keyword checks:

    php
    $value = preg_replace('/&#0*(?:3[01]|[12][0-9]|[0-9]);/', '', $value);

Workarounds

None. Update to the patched version.

Resources

  • CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
  • OWASP WSTG-INPV-02: Testing for Stored Cross Site Scripting
  • OWASP Top 10 A03:2021 – Injection

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer nukeviet/nukeviet < 4.6.00 4.6.00

Referencias

Puntuación CVSS 8.7/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Debilidad (CWE)
CWE-79
Plataforma
Composer
Paquete
nukeviet/nukeviet
Publicada
13.07.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-465g-4q99-5x86 - CC BY 4.0

Historial de vulnerabilidades: nukeviet/nukeviet

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (17) en el archivo
Entradas en total
17
Primera → última
06.2021 07.2026
Sin corrección
5
Explotada en ataques
0

Distribución por gravedad

  • Crítica 4
  • Alta 8
  • Media 5

Divulgaciones por año

  1. 2021: 2
  2. 2022: 8
  3. 2023: 0
  4. 2024: 1
  5. 2025: 0
  6. 2026: 6
Gravedad:
  1. Alta · 7.2 CVE-2026-55372 < 4.6.00 4.6.00
  2. NukeViet: Multiple Anti-XSS Filter Bypasses Leading to Stored XSS in News Module esta entrada
    Alta · 8.7 CVE-2026-54064 < 4.6.00 4.6.00
  3. Alta · 8.2 CVE-2026-48118 < 4.6.00 4.6.00
  4. Alta · 8.8 CVE-2024-36528 <= 4.5 sin corrección
  5. Crítica · 9.8 CVE-2020-21809 >= 4.0, < 4.0.29, >= 4.1, < 4.1.02, >= 4.2, < 4.2.01, = 4.3 4.0.29, 4.1.02, 4.2.01
  6. Crítica · 9.8 CVE-2020-21808 >= 4.0.10, < 4.3.08 4.3.08
  7. Alta · 8.8 CVE-2020-13155 = 4.4.0 sin corrección
  8. Crítica · 9.8 CVE-2019-7725 < 4.3.04 4.3.04
  9. Crítica · 9.8 CVE-2019-7726 < 4.3.04 4.3.04

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.