CVE-2026-94565: NukeViet CMS Cross-Site Scripting Vulnerability
CRITICALCVE-2026-94565 is a CRITICAL (CVSS 9.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting NukeViet CMS libraries in the Packagist ecosystem. The issue involves unauthenticated stored xss in the contact module. Remediation is available by upgrading affected packages to version 4.6.01.
CVE-2026-94565 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2026-94565
To remediate this vulnerability, upgrade all affected NukeViet CMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade nukeviet/nukeviet to 4.6.01
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for nukeviet/nukeviet
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-94565, inspect your project dependencies for NukeViet CMS:
inspect dependencies for nukeviet/nukeviet
Analyze the terminal output to locate any version of NukeViet CMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.01), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In NukeViet CMS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-94565 Affected NukeViet CMS Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nukeviet/nukeviet
|
Packagist |
≥ 3.0.0
< 4.6.01
|
4.6.01
|
References
Frequently Asked Questions
What is CVE-2026-94565?
Which NukeViet CMS versions are affected?
What version fixes CVE-2026-94565?
Is nukeviet/nukeviet affected?
What is the CVSS score of CVE-2026-94565?
What CWE is associated with CVE-2026-94565?
How can I check Packagist dependencies for CVE-2026-94565?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-662q-v5rm-78gm",
"modified" : "2026-11-30T20:33:42Z",
"published" : "2026-11-30T20:33:42Z",
"aliases" : [ "CVE-2026-94565" ],
"summary" : "NukeViet CMS: Unauthenticated Stored XSS in the Contact Module",
"details" : "### Summary\nA stored-XSS vulnerability in the Contact module allows any unauthenticated user to inject malicious Javascript.\n\n### Details\nNukeViet'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.\n\nThe 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**:\n\n```\nINPUT : <img src=x /onerror=alert(document.domain)>\nSTORED : <img src=\"x\" /onerror=\"alert(document.domain)\" />\nADMIN : <td colspan=\"2\"><img src=\"x\" /onerror=\"alert(document.domain)\" /></td>\n```\n\nBecause 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**.\n\n### PoC\n#### Minimal payload\n\n```html\n<img src=x /onerror=alert(document.domain)>\n```\n\n`alert(document.domain)` displays the site's real origin (e.g. the target host), proving **same-origin** execution.\n\n#### Manual reproduction (fresh 4.6.00 install, default config)\n\n1. As an anonymous visitor open `/contact/`; set the **message** field to the payload above.\n2. Solve the CAPTCHA and submit (form returns `status: ok`).\n3. Log in to the admin panel; open **Admin → Contact** and view the message\n (`admin/index.php?nv=contact&op=view&id=<id>`).\n4. `onerror` fires on view; `alert()` shows the panel's own origin.\n\n### Impact\nAn 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:\n1. Super admin account persistence\n2. RCE via admin functions\n\n### Mitigation\n1. **Tokenize attributes the way the HTML spec does.** In `filterTags()`, treat `/` (and all HTML whitespace: tab, LF, FF, CR, space) as attribute separators, so `/onerror` is parsed as the token `onerror` and caught by the existing denylist. Equivalently, strip leading `/` and other non-name characters from the attribute name before the `^on` test.\n2. **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 `/onerror` verbatim.\n3. **Prefer an allowlist of attributes** over the `^on` denylist; drop anything not explicitly permitted for the element.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "nukeviet/nukeviet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "4.6.01"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/security/advisories/GHSA-662q-v5rm-78gm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-94565"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/commit/ef90780e50d54384019a36aa2bcf9fd58776f698"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nukeviet/nukeviet"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/releases/tag/4.6.01"
}, {
"type" : "WEB",
"url" : "https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-30T20:33:42Z",
"nvd_published_at" : "2026-11-20T19:18:56Z"
}
}