- Severity: HIGH
- CVE: CVE-2026-94598
- Ecosystems: composer, composer
- Packages: nukeviet/nukeviet, nukeviet/nukeviet
### 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 “), 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 `[`, `[` or `[`), 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:
“`html
“`
Stored output:
“`html
“`
The browser decodes the `srcdoc` attribute and renders “. 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_Reques…
Source: GitHub Security Advisories · 2026-11-30