CVE-2026-94565 is a critical-severity (CVSS 9.3) Cross-site Scripting (XSS) vulnerability in nukeviet/nukeviet. A fix is available for nukeviet/nukeviet — see the affected versions and patch details below.
NukeViet CMS: Unauthenticated Stored XSS in the Contact module
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-94565.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
nukeviet/nukevietReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Summary
A stored-XSS vulnerability in the Contact module allows any unauthenticated user to inject malicious Javascript.
Details
NukeViet's central input filter (NukeViet\Core\Request::filterTags), applied to virtually all POST data, is a denylist HTML sanitizer. Its most important rule strips any attribute whose name matches /^on/i (event handlers). This rule is bypassable through an HTML parser differential: the filter tokenizes a tag's attributes by splitting on ASCII space (0x20) only, whereas browsers also separate attributes on /. By inserting a / immediately before an event-handler name, the attacker makes the filter read the attribute name as /onerror — which does not start with on, so the denylist misses it — while the browser parses it as onerror and fires it.
The payload survives the entire filter chain unmodified and is stored and served raw (no output encoding) into the administration panel, which sends no Content-Security-Policy:
INPUT : <img src=x /onerror=alert(document.domain)>
STORED : <img src="x" /onerror="alert(document.domain)" />
ADMIN : <td colspan="2"><img src="x" /onerror="alert(document.domain)" /></td>
Because the handler executes in the same origin as the admin panel, an unauthenticated attacker who submits a crafted contact message obtains arbitrary JavaScript execution in the session of any administrator who opens it — enabling administrator account takeover.
PoC
Minimal payload
<img src=x /onerror=alert(document.domain)>
alert(document.domain) displays the site's real origin (e.g. the target host), proving same-origin execution.
Manual reproduction (fresh 4.6.00 install, default config)
- As an anonymous visitor open
/contact/; set the message field to the payload above. - Solve the CAPTCHA and submit (form returns
status: ok). - Log in to the admin panel; open Admin → Contact and view the message
(
admin/index.php?nv=contact&op=view&id=<id>). onerrorfires on view;alert()shows the panel's own origin.
Impact
An unauthenticated attacker achieves arbitrary JavaScript execution in the same origin as the NukeViet admin panel, running in the session of any administrator who views the malicious contact message. Possible attacks:
- Super admin account persistence
- RCE via admin functions
Mitigation
- Tokenize attributes the way the HTML spec does. In
filterTags(), treat/(and all HTML whitespace: tab, LF, FF, CR, space) as attribute separators, so/onerroris parsed as the tokenonerrorand caught by the existing denylist. Equivalently, strip leading/and other non-name characters from the attribute name before the^ontest. - Do not preserve non-conforming attribute names. Reject/normalize any attribute whose name is not
[A-Za-z][A-Za-z0-9-]*after normalization, rather than emitting/onerrorverbatim. - Prefer an allowlist of attributes over the
^ondenylist; drop anything not explicitly permitted for the element.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | nukeviet/nukeviet | ≥ 3.0.0&&< 4.6.01 | 4.6.01composer require nukeviet/nukeviet:^4.6.01 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for nukeviet/nukeviet, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update nukeviet/nukeviet to 4.6.01 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-94565 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2026-94565 in your dependencies?
Find it across Packagist, including transitive dependencies.