Critical vulnerability
Critical cross-site scripting in nukeviet/nukeviet (CVE-2026-94567)
Cross-site scripting in nukeviet/nukeviet · Packagist
CVE-2026-94567
NukeViet CMS: Stored XSS via internal DTD entities in SVG uploads
- Severity
- Critical 9.3
- Published
- 30 Nov 2026
- Fixed in
- 4.5.12
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data
This is a stored cross-site scripting (XSS) vulnerability. An uploaded SVG can carry a element hidden inside an internal DTD entity; the server-side sanitizer never sees it, stores the file byte-for-byte, and serves it as image/svg+xml`, so the script executes in the site's own origin when the file URL is opened in a browser.
The SVG sanitizer sanitize_svg_dom() enumerates elements with DOMXPath::query('//') and rejects any tag outside an allow-list, so a plain scripted SVG is correctly blocked. The check is bypassed by declaring the script inside an internal DTD entity, because DOMDocument is loaded without LIBXML_NOENT; libxml therefore keeps the reference as a DOMEntityReference node (node type 5, not an element), // never returns the , and the file passes validation. Browsers parsing image/svg+xml do expand internal entities, so a real element materialises client-side.
Workarounds
For users who cannot update immediately:
- Remove svg from the allowed upload types - in the admin upload configuration and in the extension groups used by comment attachments and banner plans (the images group in includes/ini/mime.ini contains svg).
- Serve the uploads directory with Content-Disposition: attachment for .svg files and/or a restrictive Content-Security-Policy, so SVGs are downloaded rather than rendered inline and any script is contained.
| Software | Affected versions |
|---|---|
| nukeviet/nukevietPackagist |
|
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-94567
- GitHub Advisory Database https://github.com/advisories/GHSA-cp55-wmv6-wxpp
From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.