CVE-2026-94565: NukeViet CMS Cross-Site Scripting Vulnerability

CRITICAL
Advisory Identifier: GHSA-662q-v5rm-78gm
CVSS 9.3
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-94565
GHSA Identifier GHSA-662q-v5rm-78gm
Severity CRITICAL
CVSS v3.1 Base Score 9.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product NukeViet CMS
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

nukeviet/nukeviet fixed: 4.6.01
Upgrade nukeviet/nukeviet to 4.6.01
Verify Direct and Transitive Dependencies

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

### 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 ```html <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) 1. As an anonymous visitor open `/contact/`; set the **message** field to the payload above. 2. Solve the CAPTCHA and submit (form returns `status: ok`). 3. Log in to the admin panel; open **Admin → Contact** and view the message (`admin/index.php?nv=contact&op=view&id=<id>`). 4. `onerror` fires 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: 1. Super admin account persistence 2. RCE via admin functions ### Mitigation 1. **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. 2. **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. 3. **Prefer an allowlist of attributes** over the `^on` denylist; drop anything not explicitly permitted for the element.

CVE-2026-94565 Affected NukeViet CMS Versions

1 component(s)
Fixed Versions:
4.6.01
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?
CVE-2026-94565 is a security vulnerability in NukeViet CMS involving Unauthenticated Stored XSS in the Contact Module under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which NukeViet CMS versions are affected?
Affected versions include releases prior to 4.6.01 across affected packages: nukeviet/nukeviet.
What version fixes CVE-2026-94565?
Upgrading to 4.6.01 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nukeviet/nukeviet affected?
Yes, nukeviet/nukeviet is affected in releases prior to 4.6.01. Upgrade your dependency to 4.6.01 or later.
What is the CVSS score of CVE-2026-94565?
CVE-2026-94565 has a CVSS v3.1 base score of 9.3 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-94565?
CVE-2026-94565 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2026-94565?
Run the dependency tree command: 'inspect dependencies for nukeviet/nukeviet'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}