Executive brief
NukeViet is an open-source content management system. A vulnerability in its news module allows users with posting permissions to bypass security filters and inject malicious scripts into articles. When other users or administrators view these articles, the scripts can steal login information, hijack sessions, or deface the website.
Technical details
Two distinct bypasses exist in NukeViet\Core\Request. The first occurs in filterAttr(), where the regex used to block event handlers fails to account for the ASCII Form Feed character (\x0C), which browsers treat as valid whitespace. The second occurs in unhtmlentities(), which fails to strip decimal HTML entities like 	 (tab) before keyword checks, allowing 'javascript:' URIs to bypass the filter. An authenticated attacker with news-posting privileges can use these techniques to store malicious payloads in the database. These payloads execute in the context of any user viewing the affected content, potentially leading to full account takeover or privilege escalation. The issue is fixed in version 4.6.00 by improving character stripping and entity normalization.
Affected products
- NukeViet NukeViet < 4.6.00
Timeline
- 2026-07-13: advisory
- 2026-07-13: disclosed
- 4.6.00: patched