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:
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.
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-94599NukeViet CMS: Reflected XSS in news module search via double URL decoding of the q parameterMedium 6.1 30 Nov 2026
- 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-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-94565
- GitHub Advisory Database https://github.com/advisories/GHSA-662q-v5rm-78gm