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

NukeViet CMS: Reflected XSS in news module search via double URL decoding of the q parameterGHSA-3q6c-wfxw-7hj6

MEDIUMFix: nukeviet/nukeviet@3bfe2c5

GHSA-3q6c-wfxw-7hj6 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in nukeviet/nukeviet. A fix is available for nukeviet/nukeviet — see the affected versions and patch details below.

Also known asCVE-2026-94599
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 GHSA-3q6c-wfxw-7hj6.

EPSS Exploitation Probability

via FIRST.org ↗
0.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs40th percentile — riskier than 40% 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

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 ', ", < and >. 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 <strong>{KEY}</strong> element of the "no results" message (full tag injection, e.g. <svg onload=...>).

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 same-origin action on behalf of the victim, including reading CSRF tokens and submitting forms. If the victim is a logged-in administrator, this can be used to perform administrative actions in the admin panel. The default Content Security Policy allows 'unsafe-inline', so it does not mitigate the attack.

Any site with the news module enabled is affected.

Affected versions: >= 4.5.00, <= 4.6.01. The vulnerable urldecode() call was introduced in commit 76ee0a8b9 (April 2021).

Patches

The vulnerability has been fixed in NukeViet 4.6.02. Users should upgrade to 4.6.02 or later.

The fix removes the extra urldecode() and the ad hoc filtering, and uses the output of get_title() directly. That output is already decoded and HTML-escaped, so it is safe both for SQL (via dblikeescape()) and for output in templates. The keyword length is still limited by NV_MAX_SEARCH_LENGTH.

Workarounds

If upgrading is not possible right away, apply the patch manually in modules/news/funcs/search.php by replacing:

$key = $nv_Request->get_title('q', 'get', '');
$key = str_replace(["'", '"', '<', '>', '&#039;', '&quot;', '&lt;', '&gt;'], '', $key);
$key = str_replace('+', ' ', urldecode($key));
$key = trim(nv_substr($key, 0, NV_MAX_SEARCH_LENGTH));
$keyhtml = nv_htmlspecialchars($key);

with:

$key = nv_substr($nv_Request->get_title('q', 'get', ''), 0, NV_MAX_SEARCH_LENGTH);

and replacing every use of $dbkeyhtml / $_dbkeyhtml with $dbkey / $_dbkey in the same file.

As a temporary mitigation, a WAF rule can reject requests to the news search page whose q parameter contains %25 (an encoded %), which blocks the multi-encoded payloads.

Affected Packages

2 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistnukeviet/nukeviet≥ 4.5.00&&< 4.5.134.5.13composer require nukeviet/nukeviet:^4.5.13
🐘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.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3q6c-wfxw-7hj6 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 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 `'`, `"`, `<` and `>`. 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
O3 Security · Impact-Aware SCA

Is GHSA-3q6c-wfxw-7hj6 in your dependencies?

Find it across Packagist, including transitive dependencies.

NukeViet CMS: Reflected XSS in news module search via…