All vulnerabilities

Packagist

CVE-2026-94564

NukeViet CMS: Unauthenticated Stored XSS in the Contact Module via HTML Sanitizer Bypass

Severity
High 8.2
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
4.6.01
Exploit chance
0.6% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 30 Nov 2026
Weakness
CWE-172Incomplete deny list (CWE-184)Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Also known as
GHSA-7pv3-g7fw-7xhq
Sources
OSV.dev and GitHub

Description

An unauthenticated stored Cross-Site Scripting (XSS) vulnerability exists in the Contact module of NukeViet CMS. An anonymous visitor can submit crafted HTML through the message content (fcon) field. The payload survives the server-side HTML sanitizer and is later rendered in the administration panel when an administrator (or the staff member responsible for Contact) opens the message, causing arbitrary JavaScript to execute in the admin origin.

The root cause is in the HTML sanitizer unhtmlentities() / filterAttr() inside vendor/vinades/nukeviet/Core/Request.php.

The sanitizer decodes numeric HTML entities before checking attribute values for dangerous URL schemes such as javascript:. The decoding regular expression only tolerated a fixed number of leading zeros:

Because 0{0,8} matches at most 8 leading zeros, an entity with 9 or more leading zeros is not decoded:

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

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

Until the patch is applied, one or more of the following reduce exposure:

  • Remove iframe (and, if not required, object / embed) from the allowed HTML tags in Admin → Settings so URL-bearing rich-HTML tags cannot be submitted through public forms.
  • Apply the sanitizer changes described above directly to vendor/vinades/nukeviet/Core/Request.php.
  • Configure a strict Content-Security-Policy for the administration area (for example, a script-src without 'unsafe-inline') as a defense-in-depth layer.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet
  • Every version before 4.6.01

About nukeviet/nukeviet

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

References