Critical · 9.3 PHP packages CVE-2026-94567 PKSA-ny14-zc4c-jgsf GHSA-cp55-wmv6-wxpp
NukeViet CMS: Stored XSS in SVG Upload Handling Lets Attackers Hide Scripts in DTD Entities (CVE-2026-94567)
NukeViet CMS versions before 4.5.12 and the 4.6.00 release line before 4.6.02 are affected by a stored XSS vulnerability in SVG upload handling. An attacker can hide a script element inside an internal DTD entity that the sanitizer does not inspect, but that browsers expand when the file is served as an SVG image. Fixed versions are 4.5.12 and 4.6.02.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A stored cross-site scripting vulnerability has been identified in NukeViet CMS, a multi-purpose content management system. The issue affects the SVG upload functionality and allows an attacker to embed executable script content that evades the built-in sanitizer, potentially leading to script execution in another user's session when the uploaded file is viewed. The vendor has released fixed versions.
What happened
NukeViet CMS contains a stored cross-site scripting (XSS) vulnerability in its SVG upload handling. An attacker can hide a script element inside an internal DTD (Document Type Definition) entity within an SVG file. The upload-checking routine (check_svg_tmpfile()) loads the document without expanding entities, leaving a DOMEntityReference node behind, while the sanitizing routine (sanitize_svg_dom()) only inspects element nodes and does not detect content hidden inside the entity. When the stored SVG file is later served with the image/svg+xml content type, browsers do expand the entity, causing the hidden script to execute.
Technical cause
The vulnerability stems from an inconsistency between how the upload validation code parses SVG files and how browsers render them. Because entity expansion is disabled during validation, malicious markup hidden in a DTD entity is invisible to the element-based sanitizer. Additionally, the SVG upload path returned before the general verify_image() check and preserved the original file bytes, meaning the hidden script content reached disk unmodified. This is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation).
Who is affected
Sites running affected versions of nukeviet/nukeviet are affected if they allow SVG uploads through a vulnerable flow. The package description notes that guest comment attachments can make the upload path unauthenticated when a module's comment feature is open to the All or Guest group and the allowattachcomm setting is enabled. Module administrators using the file manager can also trigger the upload path, which could lead to script execution within an administrator's session.
Affected versions
Affected: nukeviet/nukeviet versions before 4.5.12, and versions from 4.6.00 up to (not including) 4.6.02. Fixed versions: 4.5.12 and 4.6.02.
Fixes and mitigation
The vendor has released fixed versions 4.5.12 and 4.6.02 that address this issue. Site operators should update nukeviet/nukeviet to one of these fixed versions as soon as possible.
Recommended action
Update nukeviet/nukeviet to version 4.5.12 or 4.6.02, whichever is appropriate for your installed release line. If an immediate update is not possible, consider restricting or disabling SVG uploads, disabling the allowattachcomm setting for guest comment attachments, and limiting file manager access until the update is applied.
PatchBriefing score
9.3 / 10 · Critical
Official CVSS: 9.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
EPSS 0.0088 (60 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- nukeviet/nukeviet >=4.6.00|<4.5.12
- vulnerable
- nukeviet/nukeviet >= 4.6.00
- vulnerable
- nukeviet/nukeviet ≥ 4.6.00
- vulnerable
- nukeviet/nukeviet
- vulnerable
- ≥ 4.5.12
- patched
Reported fixes
The vendor has released fixed versions 4.5.12 and 4.6.02 that address this issue. Site operators should update nukeviet/nukeviet to one of these fixed versions as soon as possible.
How this was built
4 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
CVE.org database
-
Packagist Security Advisories registry
-
GitHub Advisory Database database
Revision history
- Published
- Generated
- Published
- Early Warning