CVE-2026-94599: NukeViet CMS Cross-Site Scripting Vulnerability
MODERATECVE-2026-94599 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-174: Double Decoding of the Same Data) affecting NukeViet CMS libraries in the Packagist ecosystem. The issue involves reflected xss in news module search via double url decoding of the q parameter. Remediation is available by upgrading affected packages to version 4.5.13.
CVE-2026-94599 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-94599
To remediate this vulnerability, upgrade all affected NukeViet CMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade nukeviet/nukeviet to 4.5.13
Upgrade nukeviet/nukeviet to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for nukeviet/nukeviet
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-94599, inspect your project dependencies for NukeViet CMS:
inspect dependencies for nukeviet/nukeviet
Analyze the terminal output to locate any version of NukeViet CMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-174: Double Decoding of the Same Data, where the product decodes the same input twice, which can limit the effectiveness of any protection mechanism that occurs in between the decoding operations. In NukeViet CMS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-94599 Affected NukeViet CMS Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nukeviet/nukeviet
|
Packagist |
≥ 4.5.00
< 4.5.13
|
4.5.13
|
|
nukeviet/nukeviet
|
Packagist |
≥ 4.6.00
|
|
References
Frequently Asked Questions
What is CVE-2026-94599?
Which NukeViet CMS versions are affected?
What version fixes CVE-2026-94599?
Is nukeviet/nukeviet affected?
What is the CVSS score of CVE-2026-94599?
What CWE is associated with CVE-2026-94599?
How can I check Packagist dependencies for CVE-2026-94599?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3q6c-wfxw-7hj6",
"modified" : "2026-11-30T21:13:33Z",
"published" : "2026-11-30T21:13:33Z",
"aliases" : [ "CVE-2026-94599" ],
"summary" : "NukeViet CMS: Reflected XSS in news module search via double URL decoding of the q parameter",
"details" : "### Impact\n\nThis is a reflected Cross-Site Scripting (XSS) vulnerability in the search function of the `news` module.\nIt is caused by the search keyword being URL-decoded after it has already been sanitized (CWE-174: Double Decoding of the Same Data).\n\nThe `q` parameter is read with `$nv_Request->get_title()`, which neutralizes `'`, `\"`, `<` and `>`.\nDuring that filtering, `%XX` sequences are resolved once more, so a value such as `%2522` becomes the literal text `%22` and passes the filter untouched.\n`modules/news/funcs/search.php` then called `urldecode()` on the filtered value, turning `%22` into a real `\"` after all sanitization had run.\nThe resulting raw keyword was passed to `search_theme()` and `search_result_theme()` and printed without escaping into:\n\n- the `value=\"{KEY}\"` attribute of the search input (attribute breakout, e.g. `autofocus onfocus=...`);\n- the `<strong>{KEY}</strong>` element of the \"no results\" message (full tag injection, e.g. `<svg onload=...>`).\n\nBoth the `default` and `mobile_default` themes are affected.\n\nProof of concept (the `autofocus` attribute makes the payload fire on page load without further interaction):\n\n```\nhttps://example.com/search/?q=%252522%252520autofocus%252520onfocus%25253D%252522alert(document.domain)\n```\n\nAn unauthenticated attacker can craft such a link and send it to any visitor.\nWhen the victim opens it, arbitrary JavaScript runs in the origin of the NukeViet site.\nSession cookies are `HttpOnly`, so they cannot be read directly.\nHowever, the script can perform any same-origin action on behalf of the victim, including reading CSRF tokens and submitting forms.\nIf the victim is a logged-in administrator, this can be used to perform administrative actions in the admin panel.\nThe default Content Security Policy allows `'unsafe-inline'`, so it does not mitigate the attack.\n\nAny site with the `news` module enabled is affected.\n\nAffected versions: `>= 4.5.00, <= 4.6.01`.\nThe vulnerable `urldecode()` call was introduced in commit `76ee0a8b9` (April 2021).\n\n### Patches\n\nThe vulnerability has been fixed in NukeViet `4.6.02`.\nUsers should upgrade to `4.6.02` or later.\n\nThe fix removes the extra `urldecode()` and the ad hoc filtering, and uses the output of `get_title()` directly.\nThat output is already decoded and HTML-escaped, so it is safe both for SQL (via `dblikeescape()`) and for output in templates.\nThe keyword length is still limited by `NV_MAX_SEARCH_LENGTH`.\n\n### Workarounds\n\nIf upgrading is not possible right away, apply the patch manually in `modules/news/funcs/search.php` by replacing:\n\n```php\n$key = $nv_Request->get_title('q', 'get', '');\n$key = str_replace([\"'\", '\"', '<', '>', ''', '"', '<', '>'], '', $key);\n$key = str_replace('+', ' ', urldecode($key));\n$key = trim(nv_substr($key, 0, NV_MAX_SEARCH_LENGTH));\n$keyhtml = nv_htmlspecialchars($key);\n```\n\nwith:\n\n```php\n$key = nv_substr($nv_Request->get_title('q', 'get', ''), 0, NV_MAX_SEARCH_LENGTH);\n```\n\nand replacing every use of `$dbkeyhtml` / `$_dbkeyhtml` with `$dbkey` / `$_dbkey` in the same file.\n\nAs 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "nukeviet/nukeviet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.5.00"
}, {
"fixed" : "4.5.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "nukeviet/nukeviet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.6.00"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/security/advisories/GHSA-3q6c-wfxw-7hj6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-94599"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/commit/3bfe2c541edf76dee309ffcdae7b1ecb91bf3467"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/commit/de6b594b2bed0b6976293eec3815230e1f3ffe63"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nukeviet/nukeviet"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/blob/4.5.13/CHANGELOG.txt"
}, {
"type" : "WEB",
"url" : "https://github.com/nukeviet/nukeviet/releases/tag/4.6.02"
}, {
"type" : "WEB",
"url" : "https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-02-858.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-174", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-30T21:13:33Z",
"nvd_published_at" : "2026-11-20T19:18:57Z"
}
}