- Severity: MEDIUM
- CVE: CVE-2026-94599
- Ecosystems: composer, composer
- Packages: nukeviet/nukeviet, nukeviet/nukeviet
### Impact
This is a reflected Cross-Site Scripting (XSS) vulnerability in the search function of the `news` module.
It is caused by the search keyword being URL-decoded after it has already been sanitized (CWE-174: Double Decoding of the Same Data).
The `q` parameter is read with `$nv_Request->get_title()`, which neutralizes `’`, `”`, “.
During that filtering, `%XX` sequences are resolved once more, so a value such as `%2522` becomes the literal text `%22` and passes the filter untouched.
`modules/news/funcs/search.php` then called `urldecode()` on the filtered value, turning `%22` into a real `”` after all sanitization had run.
The resulting raw keyword was passed to `search_theme()` and `search_result_theme()` and printed without escaping into:
– the `value=”{KEY}”` attribute of the search input (attribute breakout, e.g. `autofocus onfocus=…`);
– the `{KEY}` element of the “no results” message (full tag injection, e.g. “).
Both the `default` and `mobile_default` themes are affected.
Proof of concept (the `autofocus` attribute makes the payload fire on page load without further interaction):
“`
https://example.com/search/?q=%252522%252520autofocus%252520onfocus%25253D%252522alert(document.domain)
“`
An unauthenticated attacker can craft such a link and send it to any visitor.
When the victim opens it, arbitrary JavaScript runs in the origin of the NukeViet site.
Session cookies are `HttpOnly`, so they cannot be read directly.
However, the script can perform any…
Source: GitHub Security Advisories · 2026-11-30