On this page (7 sections)
A critical stored cross-site scripting (XSS) flaw has been disclosed in NukeViet CMS. Any anonymous visitor who can submit a message through the Contact module can plant JavaScript that runs when an administrator opens that message. The maintainers fixed it in version 4.6.01.
If you run NukeViet 3.x or 4.x before 4.6.01, especially with a public contact form, you should upgrade and review recent contact messages. So far the advisory is the main source, and the research does not report any exploitation in the wild.
What happened
The GitHub security advisory describes an unauthenticated stored XSS in the Contact module. A visitor submits a specially crafted message. NukeViet stores it, and the administration panel later displays it without encoding. When an administrator opens the message, the attacker's script runs in the administrator's browser, on the same origin as the admin panel.
The advisory lists three possible outcomes: persistent super admin access, and remote code execution through admin functions. In practice, that means a spam-looking contact message could become a full site takeover if the right person reads it.
- CVSS score (GitHub advisory)
- 9.3
- Affected versions, back to 3.0.0
- < 4.6.01
- EPSS score listed in the advisory
- 0.819%
Technical details: a parser differential
NukeViet runs nearly all POST data through a central filter, NukeViet\Core\Request::filterTags(). It is a denylist sanitizer: one of its main rules removes any HTML attribute whose name starts with "on", which is how event handlers such as onerror are normally caught.
The weakness is how the filter splits a tag into attributes. According to the advisory and the CVE record, it separates attributes only on the ASCII space character. Browsers follow the HTML specification and also treat a forward slash as a separator. If a slash is placed directly before an event handler name, the filter sees an attribute called "/onerror", which does not start with "on" and so passes the denylist. The browser, however, reads it as a normal onerror handler and runs it.
This is a classic parser differential: two components disagree on how to read the same input, and the gap is the vulnerability. Two other conditions make it worse, both noted in the advisory: the message is stored and rendered without output encoding in the admin panel, and the admin panel sends no Content-Security-Policy header, so nothing limits what injected script can do.
Who is affected
Every NukeViet release from 3.0.0 up to but not including 4.6.01 is listed as vulnerable. The advisory's reproduction notes mention a fresh 4.6.00 install with default configuration, so a default setup is not protected. The attacker needs no account, only the ability to submit the public contact form, which the advisory says requires solving a CAPTCHA.
Sites most at risk are those where administrators routinely read contact messages in the admin panel while logged in. Sites that have removed or disabled the Contact module have less exposure from this specific path, but upgrading is still the right move.
How to check your exposure
First confirm your version. In the admin panel, the version is normally shown in the system information area; you can also compare your files against the 4.6.01 release. If you manage the site with Composer, this read-only command lists the installed version of the package. Run it from the project root and look for a version below 4.6.01.
composer show nukeviet/nukevietNext, review stored contact messages for signs of tampering. Look for HTML in messages that should be plain text, in particular image tags with unusual attributes. Do this from the database or an export rather than by opening messages in the admin panel while logged in, because opening a malicious message is exactly what triggers the script.
What to do now
- Back up the site files and database before changing anything.
- Upgrade NukeViet to 4.6.01 or later, following the maintainers' release announcement.
- Until you can upgrade, avoid opening Contact module messages in the admin panel, and consider disabling the contact form.
- Review existing contact messages (via the database, not the admin UI) for embedded HTML or unusual attributes.
- If any administrator may have opened a suspicious message, rotate admin passwords, end active sessions and review the list of admin and super admin accounts for ones you do not recognize.
- Check for unexpected changes to files, modules and settings, since the advisory notes that admin functions could be abused for code execution.
- Add a Content-Security-Policy header for the admin area at your web server or reverse proxy, as a defense in depth layer.
The upstream fix commit is available if you want to see what changed. The advisory suggests tokenizing attributes as the HTML specification does, treating slash and all HTML whitespace as separators, and preferring an allowlist of attributes over the "on" denylist.
Detection and monitoring afterwards
Stored XSS leaves traces in your data, so keep watching after the upgrade. Review web server logs for POST requests to the contact page that contain angle brackets or attribute-like strings, and watch for new admin accounts, changed admin email addresses and unexpected file modifications.
Outside-in tools can help with part of this. A scheduled security scan and header-change monitoring can show whether your site's response headers change, such as a missing Content-Security-Policy, but they cannot see inside a logged-in admin session. For the limits of that approach, read what outside-in malware detection can and cannot see.
If you find evidence that an administrator session was abused, follow a full incident process: see website hacked: what to do.
Timeline
| Date (2026) | Event |
|---|---|
| Aug 30 | Advisory published in the nukeviet/nukeviet repository |
| Nov 20 | Published by the National Vulnerability Database |
| Nov 30 | Published and reviewed in the GitHub Advisory Database |
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
