CVE-2026-94567: NukeViet CMS: Stored XSS via SVG upload: the sanitizer is blind to markup hidden inside an internal DTD entity
NukeViet CMS is a multi Content Management System. Prior to 4.5.12 and 4.6.02, an attacker with access to an SVG upload flow can hide a script element in an internal DTD entity. NukeViet\Files\Upload::checksvgtmpfile() loads the document without entity expansion, leaving a DOMEntityReference, and sanitizesvgdom() inspects only element nodes, while browsers expand the entity when the stored file is served as image/svg+xml. The SVG path also returned before verifyimage() and preserved the original bytes, so the hidden script reached disk unchanged. Guest comment attachments make the upload unauthenticated only when a module's comment feature is open to the All or Guest group and allowattachcomm is enabled; module administrators can also use the file manager, allowing same-origin script execution in an administrator's session. This issue is fixed in versions 4.5.12 and 4.6.02.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
NukeViet CMSto a version that resolves this vulnerability.Fixed in 4.5.12 - Upgrade
Upgrade
NukeViet CMSto a version that resolves this vulnerability.Fixed in 4.6.02
Event History
Frequently Asked Questions
Which deployments can be exploited without an authenticated account?
Unauthenticated exploitation requires a module whose comment feature is open to the All or Guest group and has allowattachcomm enabled. In that configuration, guest comment attachments provide an SVG upload path.
What access does an attacker need when guest comment attachments are not available?
The attacker needs access to an SVG upload flow. Module administrators can use the file manager upload path, and a successful payload can execute with the same origin as an administrator viewing the stored SVG.
Are default comment settings necessarily affected?
No. Guest upload is only available when both the module comment audience permits All or Guest users and allowattachcomm is enabled; the provided information does not establish that these settings are enabled by default.
What versions contain the fix?
Upgrade to NukeViet 4.5.12 or 4.6.02. Versions earlier than those releases are affected.