What’s Vulnerable › Vulnerabilities
CVE-2026-94567: NukeViet CMS: Stored XSS via SVG upload: the sanitizer is blind to markup hidden inside an internal DTD entity
- Severity: critical (CVSS 9.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-20 · updated 2026-11-20
- Weakness: CWE-79
Description
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::check_svg_tmpfile() loads the document without entity expansion, leaving a DOMEntityReference, and sanitize_svg_dom() 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 verify_image() 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.
Summary
NukeViet CMS before 4.5.12 and 4.6.02 contains a stored XSS flaw in its SVG upload handling: the sanitizer ignores markup hidden inside an internal DTD entity, and the SVG path skips verify_image() while preserving original bytes, so a hidden script reaches disk unchanged. When the stored file is served as image/svg+xml, browsers expand the entity and execute the script, enabling same-origin code execution in an administrator's session; guest comment attachments make uploads unauthenticated when a module's comment feature is open to the All or Guest group and allowattachcomm is enabled. A proof-of-concept exists, but the issue is not in CISA KEV. Upgrade to 4.5.12 or 4.6.02, and until then restrict SVG uploads and comment attachment permissions.
تحتوي NukeViet CMS قبل الإصدارين 4.5.12 و4.6.02 على ثغرة XSS مخزّنة في معالجة رفع ملفات SVG، إذ يتجاهل منظّف المحتوى تعليمات مخفية داخل كيان DTD داخلي، ويتجاوز مسار SVG دالة verify_image() مع الاحتفاظ بالبايتات الأصلية، فيصل السكربت المخفي إلى القرص دون تغيير. وعند تقديم الملف المخزّن بوصفه image/svg+xml تُوسّع المتصفحات الكيان وتنفّذ السكربت، ما يتيح تنفيذ شيفرة من الأصل نفسه في جلسة مسؤول؛ كما تصبح عمليات الرفع عبر مرفقات تعليقات الزوار غير مصادَق عليها عندما تكون ميزة التعليقات في وحدة ما مفتوحة لمجموعة All أو Guest ويكون allowattachcomm مفعّلًا. يوجد إثبات مفهوم للاستغلال، لكن الثغرة ليست في CISA KEV. يُنصح بالترقية إلى 4.5.12 أو 4.6.02، وإلى حين ذلك تقييد رفع ملفات SVG وأذونات مرفقات التعليقات.
Affected products
- nukeviet: before 4.5.12; from 4.6.00, < 4.6.02
References
- https://github.com/nukeviet/nukeviet/blob/4.5.13/CHANGELOG.txt
- https://github.com/nukeviet/nukeviet/commit/912823e2581afc23dc39dabdb7d94c718efc78f6
- https://github.com/nukeviet/nukeviet/commit/b4abcddd3a3a628e251d88571f3968822fab4406
- https://github.com/nukeviet/nukeviet/releases/tag/4.6.02
- https://github.com/nukeviet/nukeviet/security/advisories/GHSA-cp55-wmv6-wxpp
- https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-02-858.html
- https://github.com/nukeviet/nukeviet/security/advisories/GHSA-cp55-wmv6-wxpp
Get alerted when CVE-2026-94567 or the next vulnerability affects your stack