Packagist
CVE-2026-94599
NukeViet CMS: Reflected XSS in news module search via double URL decoding of the q parameter
- Severity
- Medium 6.1
- Published
- 30 Nov 2026
- Last changed
- 30 Nov 2026
- Added to UpHeron
- 30 Nov 2026
- Fixed in
- 4.5.13
- Exploit chance
- 0.6% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 30 Nov 2026
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Also known as
- GHSA-3q6c-wfxw-7hj6
- Sources
- OSV.dev and GitHub
Description
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 {KEY} element of the "no results" message (full tag injection, e.g. ).
Both the default and mobile_default themes are affected.
Workarounds
If upgrading is not possible right away, apply the patch manually in modules/news/funcs/search.php by replacing:
with:
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 software
| Software | Affected versions |
|---|---|
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet |
|
About nukeviet/nukeviet
- Monthly downloads (Packagist)
- 9Packagist, 30 Nov 2026
- Total downloads (Packagist)
- 45Packagist, 30 Nov 2026
Vulnerabilities in nukeviet/nukeviet
- In our list
- 11
- Published in the last 12 months
- 11
- Critical, last 12 months
- 2
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-94598NukeViet CMS: Stored XSS via internal marker injection in iframe srcdoc sanitizationHigh 8.2 30 Nov 2026
- CVE-2026-94597NukeViet CMS: Remote Code Execution via image-upload bypass chain (PHP short-tag detection bypass + double-extension filename)High 7.5 30 Nov 2026
- CVE-2026-94567NukeViet CMS: Stored XSS via internal DTD entities in SVG uploadsCritical 9.3 30 Nov 2026
- CVE-2026-94564NukeViet CMS: Unauthenticated Stored XSS in the Contact Module via HTML Sanitizer BypassHigh 8.2 30 Nov 2026
- CVE-2026-94565NukeViet CMS: Unauthenticated Stored XSS in the Contact ModuleCritical 9.3 30 Nov 2026
- CVE-2026-94562NukeViet CMS: Remote Code Execution via unrestricted custom field validation callback in the `users` moduleHigh 7.2 30 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-94599
- GitHub Advisory Database https://github.com/advisories/GHSA-3q6c-wfxw-7hj6