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

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

References

Get alerted when CVE-2026-94567 or the next vulnerability affects your stack