All vulnerabilities

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
Weakness
CWE-174Cross-site scripting (CWE-79)
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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet
  • From 4.5.00 before 4.5.13
  • From 4.6.00 on

About nukeviet/nukeviet

Monthly downloads (Packagist)
9Packagist, 30 Nov 2026
Total downloads (Packagist)
45Packagist, 30 Nov 2026

References