/

CVE-2026-94565

Severity:

CRITICAL RISK

(9.3)

Stored Cross-Site Scripting (CWE-79) in NukeViet CMS

CVE-2026-94565

Received

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Same-origin JavaScript execution in an administrator's browser

Severity:

CRITICAL RISK

(9.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

NukeViet CMS has a stored cross-site scripting flaw in its Contact module: crafted message attributes can bypass tag filtering and later be rendered without output encoding. An unauthenticated visitor may be able to cause JavaScript to run in the context of the site when an administrator opens the message.

Affected context

The issue concerns Contact module messages in NukeViet CMS releases in the 3.x line through versions before the 4.6.01 fix. It arises when submitted message content passes through NukeViet\Core\Request::filterTags(), is stored, and is rendered in the administration panel without output encoding. The administration panel also lacks a Content Security Policy that could limit script execution.

Exploit preconditions

  • Attack surface: The Contact module's message submission feature
  • Required access: An unauthenticated visitor can submit a message
  • Trigger point: An administrator opens the stored message in the administration panel
  • Why exploitation is possible: Attribute tokenization recognizes only ASCII spaces, so a slash-prefixed event-handler attribute can evade the denylist; the browser may interpret the slash as a separator, and unencoded rendering permits script execution.

Why this happens

The filtering logic parses HTML attributes using an incomplete understanding of browser parsing rules. It splits attributes only on ASCII spaces, allowing a slash-prefixed event-handler name to evade a denylist check, while the browser treats the slash as a separator. The message is then rendered without context-appropriate output encoding, creating a stored cross-site scripting vulnerability mapped to CWE-79: Improper Neutralization of Input During Web Page Generation.

Potential impact

  • JavaScript could execute in an administrator's browser under the site's origin.
  • An attacker may be able to perform actions available to the administrator, subject to session protections and permissions.
  • Sensitive information visible to the administrator could be exposed.
  • Site content or settings could be changed if the administrator's privileges allow it.

General mitigation guidance

Defensive patterns include encoding untrusted content for its output context and using a well-maintained HTML sanitizer with an explicit allowlist when HTML is required. Input filtering should follow browser parsing rules rather than relying on incomplete attribute tokenization. A restrictive Content Security Policy can provide defense in depth, while limiting administrative privileges and access can reduce potential consequences.

How teams detect issues like this

  • Review message rendering paths for user-controlled content that reaches HTML output without context-aware encoding.
  • Use static analysis to identify unsafe HTML output and incomplete denylist-based filtering.
  • Test sanitization against browser-relevant attribute separators and parsing behavior.
  • Apply policy checks requiring output encoding, approved sanitization libraries, and an appropriate Content Security Policy.
  • Review stored messages and relevant application logs for suspicious markup, while recognizing that filtering can make indicators incomplete.

Sources

SourceLink
github.comgithub.com/nukeviet/nukeviet/commit/ef90780e50d54384019a36aa2bcf9fd58776f698
github.comgithub.com/nukeviet/nukeviet/releases/tag/4.6.01
github.comgithub.com/nukeviet/nukeviet/security/advisories/GHSA-662q-v5rm-78gm
nukeviet.vnnukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html

Frequently asked

questions

The described attack does not require the visitor to authenticate to submit a Contact module message. Script execution depends on an administrator opening the stored message.

No. The visitor submits the message, but an administrator viewing it is the trigger for the stored content to execute in the browser.

Encode untrusted content for the specific output context. If HTML must be supported, sanitize it with a robust allowlist-based sanitizer rather than relying on a denylist.

Apply consistent output encoding, test sanitizers against browser parsing behavior, use a restrictive Content Security Policy as defense in depth, and include security checks for user-controlled content in code review and automated analysis.

Find out what's already
exploitable in your codebase.