On this page (7 sections)

NukeViet CMS has a critical stored cross-site scripting (XSS) flaw, tracked as CVE-2026-94567. An attacker can upload an SVG file that hides a script inside an internal DTD entity. The server-side sanitizer does not see it, the file is stored unchanged, and the script runs in your site's own origin when someone opens the file URL. The GitHub advisory rates it critical, and the CVE record lists CVSS 9.3.

If you run NukeViet below 4.5.12, or on the 4.6 branch below 4.6.02, and your site accepts SVG uploads from guests, front-end forms or module administrators, you should update now. Only one independent publisher covers this story so far besides the project's own pages, and the research does not report any exploitation in the wild.

What happened

NukeViet checks uploaded SVG files with a server-side sanitizer that rejects any element outside an allow-list. A plain SVG containing a script tag is correctly blocked. According to the advisory, the check can be bypassed when the script is declared inside an internal DTD entity instead of directly in the document.

The file then passes validation, is saved to disk byte for byte, and is served as image/svg+xml. Browsers expand internal entities when they parse that content type, so a real script element appears on the client side and runs with the site's origin.

Technical details

The root cause is a parser differential (CWE-436): the sanitizer and the browser read the same bytes differently. Per the advisory, the sanitizer loads the document without entity expansion, so libxml keeps the entity as a reference node rather than an element. The sanitizer only inspects element nodes, so the hidden script is never seen.

Further weaknesses removed the safety nets:

  • For SVG uploads, the temporary-file check returns the result of the SVG check before the raw-byte screen in verify_image() runs, so that fallback never executes for SVG files.
  • The admin upload handler skips image re-processing for SVG, so the attacker's exact bytes land on disk.
  • The uploads directory has no Content-Security-Policy and no Content-Disposition header to contain a script. The advisory notes that X-Content-Type-Options: nosniff does not stop image/svg+xml from executing script.

I am deliberately not reproducing the proof-of-concept file here. The key point for defenders is that the dangerous content is invisible to a sanitizer that only walks elements.

Who is affected

Any site running an affected version that accepts SVG uploads is exposed. The advisory describes three realistic entry points:

  • Guest comment attachments. This is unauthenticated, but only when a module's comment feature is open to the All or Guest group and the allowattachcomm option is enabled. The default extension set includes the images group, which includes svg.
  • Front-end submission flows whose plan permits image uploads.
  • The admin file manager, reachable by any module administrator (site-admin is not required). This makes the flaw a privilege-escalation path from module admin to site admin.

In each case the stored script runs with the viewer's session. If an attacker sends the uploaded file's link to an administrator and the administrator opens it while logged in, the script runs with that administrator's authority.

Version ranges are slightly inconsistent in the machine-readable data. The CVE record lists one range as below 4.5.12 and another as 4.6.00 and later with no patched version, while the advisory text and CVE description say the fix is in 4.5.12 and 4.6.02. Treat 4.6.00 and 4.6.01 as vulnerable and move to 4.6.02 or later. The CVE record also references a 4.5.13 changelog, which I did not review in detail.

How to check your exposure

Start with your version. In the admin area, check the NukeViet version shown in the system information, or look at the version recorded in your deployment. If you installed through Composer, this read-only command lists the installed version of the package (run it in the project directory):

Show the installed NukeViet package version (run in the project directory; check the version shown)Shell
composer show nukeviet/nukeviet

Next, review whether your site actually exposes an upload path to untrusted users: check the comment settings of each module for guest access and attachments, and review any front-end forms that accept images. Then look for SVG files that were already uploaded. This read-only search lists SVG files under the uploads directory (adjust the path to your web root):

List SVG files in the uploads directory (run on the web server; review unfamiliar files)Shell
find /path/to/your/site/uploads -type f -iname '*.svg'

To flag SVG files that declare a DTD entity, which legitimate icons rarely do, run this read-only search. A match is a reason to inspect the file, not proof of an attack:

Find SVG files containing an ENTITY declaration (run on the web server; inspect any matches)Shell
grep -rIl --include='*.svg' '<!ENTITY' /path/to/your/site/uploads

What to do now

  1. Update NukeViet to 4.5.12 (4.5 branch) or 4.6.02 or later (4.6 branch). The fix is in commit b4abcddd3 and listed in the 4.6.02 release.
  2. If you vendor the vinades/nukeviet Composer package, update the package as well, not only the CMS file tree.
  3. Until you can patch, turn off guest comment attachments (allowattachcomm) and close comment features to the All and Guest groups where you do not need them.
  4. Remove svg from the allowed upload extensions if your site does not need SVG files.
  5. Review existing SVG uploads using the searches above and delete any that contain entity declarations you cannot explain.
  6. Ask administrators not to open unfamiliar upload links while logged in, and review recent module-admin accounts and activity for anything unexpected.
  7. If you find a suspicious SVG that an administrator may have opened, treat that session as compromised: sign the account out, change its password and check for new admin users.
Caution. Back up the site and database before upgrading, and test on a staging copy if you run custom modules or themes. Deleting files from the uploads directory can break pages that reference them, so review each file before removing it.
Tip. Serving user uploads from a separate domain, or with a restrictive Content-Security-Policy and a Content-Disposition: attachment header, limits the damage if a similar bypass appears again. The advisory notes that NukeViet's uploads directory sets neither by default. Check your headers with the security headers checker.

Detection and monitoring

Stored XSS leaves little trace in server logs beyond the upload request and later requests for the file. Look in your access logs for POST requests to the admin upload handler (nv=upload&op=upload) and for guest comment submissions with attachments, then correlate them with new .svg files. A burst of SVG uploads from anonymous visitors is worth investigating.

After patching, keep watching for unexpected changes: new administrator accounts, changed site settings and new scripts loaded on pages. Script running in an administrator's session acts with that administrator's authority, so unexplained admin-level changes deserve a close look. Webforta Monitor can alert you to header and certificate changes over time, and the guide to checking whether a website is hacked walks through manual checks.

Timeline

Dates as shown in the sources
DateEvent
Oct 2, 2026Advisory GHSA-cp55-wmv6-wxpp shown as published on GitHub
Nov 20, 2026Publication date in the CVE record
Nov 30, 2026GitHub advisory last updated

The project also published a 4.6.02 release announcement. The sources do not give a disclosure timeline beyond the dates above.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-94567 - GitHub Advisory Databasegithub.com
  • NukeViet
  • XSS
  • SVG
  • CMS security
  • CVE-2026-94567