Skip to content
← Blog · · df00tech

NukeViet CMS: Stored XSS in SVG Uploads via Smuggled DTD Entities (CVE-2026-94567)

breaking ghsa composer CVE-2026-94567

What happened

A GitHub Security Advisory (GHSA-cp55-wmv6-wxpp, CVE-2026-94567, CVSS 9.3) discloses a stored XSS vulnerability in the vinades/nukeviet Composer package used by NukeViet CMS. According to the advisory, the SVG upload sanitizer in Files/Upload.php parses uploaded SVGs without LIBXML_NOENT, so a <script> element hidden inside an internal DTD entity is kept as a DOMEntityReference node rather than an element. The sanitizer's //* XPath allow-list check never sees it and passes the file through unmodified. Browsers expand the entity when rendering image/svg+xml, so the script executes in the site's origin. The advisory also notes a raw-byte fallback screen for scripts is dead code on this path, and admin-side image reprocessing is skipped for SVGs, so the attacker's exact bytes land on disk.

Why it matters

Per the advisory, this affects any NukeViet site accepting SVG uploads. Exploitation can reportedly be fully unauthenticated where a module's comment feature allows the "All"/"Guest" group with attachments enabled. The default extension group used there includes SVG. The admin file manager upload endpoint is also described as reachable by any module admin, not just site admins, making this a potential privilege-escalation path from module-admin to site-admin. Because the payload executes as a stored file under the site's own origin, sending an uploaded SVG link to an administrator would run the script with that administrator's session and authority.

What defenders should watch for or do now

  • Inventory whether NukeViet (or the vinades/nukeviet package) is deployed, and whether SVG uploads are permitted via admin file manager, comment attachments, or banner upload plans.
  • Hunt for .svg files in uploads directories containing <!DOCTYPE or <!ENTITY declarations, or unusual entity references (&payload;-style). A legitimate site-asset SVG has no need for an internal DTD subset.
  • Review web and application logs for POSTs to admin/index.php?nv=upload&op=upload from module-admin accounts, and for anonymous or guest submissions to comment or banner upload endpoints where attachments are enabled.
  • As interim mitigation, the advisory suggests removing svg from allowed upload types (including the images extension group), serving the uploads directory with Content-Disposition: attachment and/or a restrictive CSP to stop inline SVG execution, and restricting who can use front-end attachment features and who holds module-admin rights.
  • Prioritize patching: the fix is in commit b4abcddd3 on the nukeviet4.6 branch, included in NukeViet 4.6.02, and should be applied via the Composer package update, not just the CMS tree.

Developing intel

This is a same-day advisory. Details above reflect what has been disclosed so far and may be updated as the vendor and community respond. See the original GitHub Security Advisory for full technical detail, proof-of-concept, and patch notes: GHSA-cp55-wmv6-wxpp.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.