All vulnerabilities

Packagist

CVE-2026-94567

NukeViet CMS: Stored XSS via internal DTD entities in SVG uploads

Severity
Critical 9.3
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
4.5.12
Exploit chance
0.9% in the next 30 daysHigher than 56% of CVEs. EPSS by FIRST, 30 Nov 2026
Weakness
Unrestricted file upload (CWE-434)CWE-436Cross-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-cp55-wmv6-wxpp
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet
  • Every version before 4.5.12
  • From 4.6.00 on

About nukeviet/nukeviet

Monthly downloads (Packagist)
9Packagist, 30 Nov 2026
Total downloads (Packagist)
45Packagist, 30 Nov 2026

References