NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
HIGH severity

CVE-2026-94598 — nukeviet

HIGHFix: nukeviet/nukeviet@13d83ff

CVE-2026-94598 is a high-severity (CVSS 8.2) 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: Stored XSS via internal marker injection in iframe srcdoc sanitization

Also known asGHSA-p7cw-whjw-crcm
Published
Updated
Affected
2 pkgs
Patched
1 / 2
Exploits
None indexed
Exploitation data as of Nov 30, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-94598.

EPSS Exploitation Probability

via FIRST.org ↗
0.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs43th percentile — riskier than 43% of all scored CVEsHighest risk

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

2 pkgs affected
🐘nukeviet/nukeviet🐘nukeviet/nukeviet

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

Impact

A stored cross-site scripting (XSS) vulnerability exists in the HTML sanitizer of NukeViet\Core\Request (filterTags() and filterAttr()).

When an attribute contains HTML content (the srcdoc attribute of <iframe>), the sanitizer decodes its value and filters it again with filterTags(). Internally, filterTags() rebuilds allowed tags with placeholder markers ({@[, ]@}, [@{, }@]) and converts them back to <, > and " at the end. The input was never checked for these markers.

The characters [ and ] can be sent as HTML entities (for example &#91;, &#x5b; or &lbrack;), and they are decoded before the recursive call.

An attacker can therefore place markers inside a srcdoc value. These markers skip all tag and attribute filtering and are turned into real HTML tags.

A marker can also be formed by joining a marker generated by the sanitizer with attacker-controlled characters. In that case a generated tag is left unclosed, and the text that follows becomes attributes of that tag.

Example input:

<iframe srcdoc="{@[img src=x onerror=alert(document.domain)]@}"></iframe>

Stored output:

<iframe srcdoc="&lt;img src=x onerror=alert(document.domain)&gt;"></iframe>

The browser decodes the srcdoc attribute and renders <img src=x onerror=alert(document.domain)>. An srcdoc iframe without the sandbox attribute has the same origin as the parent page. The injected script can read the page and send requests with the victim's session.

The only requirement is that iframe is in the allowed HTML tags list (NV_ALLOWED_HTML_TAGS). iframe is allowed in the default configuration.

Every input read with $nv_Request->get_editor() is affected, for example:

  • Comments, when the editor is enabled for comments. Any user allowed to comment can store the payload, and it runs for every visitor who views the comment.
  • Messages sent through the contact form. The form is available to guests, and messages are displayed in the admin panel.
  • Articles submitted by members in the news module.

Through the contact form, an unauthenticated attacker can run JavaScript in the administration origin when an administrator opens the message. The script can read data from the admin panel and perform administrative actions on the administrator's behalf. Session cookies are HttpOnly, so they cannot be read directly. The default Content-Security-Policy allows 'unsafe-inline' and does not block this attack.

Patches

The issue has been fixed in NukeViet 4.6.02.

  • filterTags() now encodes every [ and ] in its input before processing, so internal markers can no longer be forged or joined.
  • HTML content inside srcdoc is now restricted to the allowed HTML tags list, in the same way as top-level content.

Users should upgrade to version 4.6.02 or later.

Workarounds

If upgrading is not possible right away:

  • Remove iframe from the allowed HTML tags list in Admin > Configuration > Setup security > HTML code was approved in the system.
  • Disable the editor for comments in the comment module settings.
  • Apply the changes from the patch commit to vendor/vinades/nukeviet/Core/Request.php.

These steps only block new payloads. Content that was stored before remains in the database. Search stored content (comments, contact messages, articles) for srcdoc and remove any suspicious entries.

Resources

Affected Packages

2 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistnukeviet/nukeviet≥ 4.5.08&&< 4.5.124.5.12composer require nukeviet/nukeviet:^4.5.12
🐘Packagistnukeviet/nukeviet≥ 4.6.00No fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. Fix

    Update nukeviet/nukeviet to 4.5.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-94598 is resolved across your whole dependency graph.

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

### Impact A stored cross-site scripting (XSS) vulnerability exists in the HTML sanitizer of `NukeViet\Core\Request` (`filterTags()` and `filterAttr()`). When an attribute contains HTML content (the `srcdoc` attribute of `<iframe>`), the sanitizer decodes its value and filters it again with `filterTags()`. Internally, `filterTags()` rebuilds allowed tags with placeholder markers (`{@[`, `]@}`, `[@{`, `}@]`) and converts them back to `<`, `>` and `"` at the end. The input was never checked for these markers. The characters `[` and `]` can be sent as HTML entities (for example `&#91;`, `&#x5b
O3 Security · Impact-Aware SCA

Is CVE-2026-94598 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2026-94598: nukeviet XSS — Fixed in 4.5.12