CVE-2026-94599: NukeViet CMS Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-3q6c-wfxw-7hj6
CVSS 6.1
CWE-174 CWE-79
Published
Advisory Summary

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

CVE Identifier CVE-2026-94599
GHSA Identifier GHSA-3q6c-wfxw-7hj6
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-174: Double Decoding of the Same Data
Affected Product NukeViet CMS
Package Ecosystem Packagist
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

nukeviet/nukeviet fixed: 4.5.13
Upgrade nukeviet/nukeviet to 4.5.13
nukeviet/nukeviet fixed: Latest secure release
Upgrade nukeviet/nukeviet to Latest secure release
Verify Direct and Transitive Dependencies

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

### 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: ```php $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: ```php $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.

CVE-2026-94599 Affected NukeViet CMS Versions

2 component(s)
Fixed Versions:
4.5.13
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?
CVE-2026-94599 is a security vulnerability in NukeViet CMS involving Reflected XSS in news module search via double URL decoding of the q parameter under CWE-174: Double Decoding of the Same Data.
Which NukeViet CMS versions are affected?
Affected versions include releases prior to 4.5.13 across affected packages: nukeviet/nukeviet.
What version fixes CVE-2026-94599?
Upgrading to 4.5.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nukeviet/nukeviet affected?
Yes, nukeviet/nukeviet is affected in releases prior to 4.5.13, Latest secure release. Upgrade your dependency to 4.5.13, Latest secure release or later.
What is the CVSS score of CVE-2026-94599?
CVE-2026-94599 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-94599?
CVE-2026-94599 is classified under CWE-174: Double Decoding of the Same Data (The product decodes the same input twice, which can limit the effectiveness of any protection mechanism that occurs in between the decoding operations.).
How can I check Packagist dependencies for CVE-2026-94599?
Run the dependency tree command: 'inspect dependencies for nukeviet/nukeviet'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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([\"'\", '\"', '<', '>', '&#039;', '&quot;', '&lt;', '&gt;'], '', $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"
  }
}