NukeViet CMS Contact Form: Unauthenticated Stored XSS Leads to Admin Takeover (CVE-2026-94565)
What happened
A security advisory (GHSA-662q-v5rm-78gm, CVE-2026-94565) discloses a stored cross-site scripting vulnerability in the Contact module of NukeViet CMS, with a CVSS score of 9.3 and a public proof-of-concept. According to the report, NukeViet's central input filter (NukeViet\Core\Request::filterTags) blocks HTML attributes starting with on (event handlers) by splitting attribute tokens on the space character only. Browsers also treat / as an attribute separator. The advisory states that inserting a / immediately before an event handler name, for example <img src=x /onerror=alert(document.domain)>, causes the filter to see the attribute as /onerror (not matched by the denylist) while the browser still parses and executes it as onerror.
Per the report, this payload is stored unmodified and rendered without output encoding in the admin panel, which reportedly sends no Content-Security-Policy header.
Why it matters
The contact form is unauthenticated by design, so any external visitor can submit a crafted message. The advisory describes the resulting JavaScript as executing in the same origin as the admin panel session when an administrator views the message. No admin interaction beyond opening the message is required. The report characterizes the potential impact as administrator account takeover, with downstream risks including persistence via a rogue super-admin account and possible remote code execution through other admin-only functionality. Any organization running affected NukeViet deployments with an internet-facing contact form is potentially exposed.
What defenders should watch for now
- Inventory any NukeViet CMS instances, particularly version 4.6.00 as referenced in the advisory's reproduction steps, and check for vendor patches or guidance addressing this advisory.
- Review recently submitted contact-form messages for attribute patterns combining a forward slash with event-handler names (for example
/onerror,/onload) inside tags like<img>,<svg>, or similar. This is the specific bypass pattern described in the report. - Audit admin-panel responses for missing or permissive Content-Security-Policy headers, and consider adding a strict CSP as defense-in-depth against stored-XSS payloads regardless of input filtering.
- Treat any unexpected admin-session activity following review of contact messages as a potential indicator of exploitation, and consider restricting or monitoring who can view raw contact submissions.
- As a stopgap, consider sanitizing or stripping all HTML tags from contact-form submissions before storage and display rather than relying on a denylist-based filter.
Developing intel
This is a freshly published advisory and details may evolve as the vendor responds and patches become available. This note reflects only what is documented in the disclosure as of publication. Defenders should consult the original source for updates. See the full advisory: https://github.com/nukeviet/nukeviet/security/advisories/GHSA-662q-v5rm-78gm.