All vulnerabilities

Packagist

CVE-2026-94565

NukeViet CMS: Unauthenticated Stored XSS in the Contact Module

Severity
Critical 9.3
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
4.6.01
Exploit chance
0.8% in the next 30 daysHigher than 54% of CVEs. EPSS by FIRST, 30 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Also known as
GHSA-662q-v5rm-78gm
Sources
OSV.dev and GitHub

Description

A stored-XSS vulnerability in the Contact module allows any unauthenticated user to inject malicious Javascript.

NukeViet's central input filter (NukeViet\Core\Request::filterTags), applied to virtually all POST data, is a denylist HTML sanitizer. Its most important rule strips any attribute whose name matches /^on/i (event handlers). This rule is bypassable through an HTML parser differential: the filter tokenizes a tag's attributes by splitting on ASCII space (0x20) only, whereas browsers also separate attributes on /. By inserting a / immediately before an event-handler name, the attacker makes the filter read the attribute name as /onerror — which does not start with on, so the denylist misses it — while the browser parses it as onerror and fires it.

The payload survives the entire filter chain unmodified and is stored and served raw (no output encoding) into the administration panel, which sends no Content-Security-Policy:

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

Workarounds

  • Tokenize attributes the way the HTML spec does. In filterTags(), treat / (and all HTML whitespace: tab, LF, FF, CR, space) as attribute separators, so /onerror is parsed as the token onerror and caught by the existing denylist. Equivalently, strip leading / and other non-name characters from the attribute name before the ^on test.
  • Do not preserve non-conforming attribute names. Reject/normalize any attribute whose name is not [A-Za-z][A-Za-z0-9-]* after normalization, rather than emitting /onerror verbatim.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet
  • From 3.0.0 before 4.6.01

About nukeviet/nukeviet

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

References