The ShortPixel Image Optimizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the attachment post_title in all versions up to, and including, 6.4.3. This is due to insufficient output escaping in the getEditorPopup() function and its corresponding media-popup.php template. Specifically, the attachment's post_title is retrieved from the database via get_post() in AjaxController.php (line 435) and passed directly to the view template (line 449), where it is rendered into an HTML input element's value attribute without esc_attr() escaping (media-popup.php line 139). Since WordPress allows Authors to set arbitrary attachment titles (including double-quote characters) via the REST API, a malicious author can craft an attachment title that breaks out of the HTML attribute and injects arbitrary JavaScript event handlers. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts that execute whenever a higher-privileged user (such as an administrator) opens the ShortPixel AI editor popup (Background Removal or Image Upscale) for the poisoned attachment.
ShortPixel Image Optimizer plugin for WordPress versions up to 6.4.3 contains a Stored Cross-Site Scripting vulnerability in the attachment post_title handling within the getEditorPopup() function. Authenticated attackers with Author role can inject malicious JavaScript through crafted attachment titles via the REST API, affecting all users who interact with the media editor.
تحتوي إضافة ShortPixel Image Optimizer على ثغرة حقن نصوص برمجية مخزنة في دالة getEditorPopup() حيث لا يتم تجاهل مخرجات عنوان المرفق بشكل صحيح. يمكن للمهاجمين المصرح لهم بدور المؤلف إنشاء عناوين مرفقات ضارة عبر REST API تحتوي على أحرف علامات اقتباس مزدوجة لكسر سمات HTML وحقن معالجات أحداث JavaScript.
ShortPixel Image Optimizer plugin for WordPress versions up to 6.4.3 contains a Stored Cross-Site Scripting vulnerability in the attachment post_title handling within the getEditorPopup() function. Authenticated attackers with Author role can inject malicious JavaScript through crafted attachment titles via the REST API, affecting all users who interact with the media editor.
Update ShortPixel Image Optimizer plugin to version 6.4.4 or later immediately. Restrict Author role capabilities to prevent REST API attachment title modifications if immediate patching is not possible. Implement Web Application Firewall rules to detect and block XSS payloads in attachment metadata.
قم بتحديث إضافة ShortPixel Image Optimizer إلى الإصدار 6.4.4 أو أحدث فوراً. قيد صلاحيات دور المؤلف لمنع تعديلات عنوان المرفق عبر REST API إذا لم يكن التحديث الفوري ممكناً. طبق قواعد جدار حماية تطبيقات الويب للكشف عن حقن XSS في بيانات المرفقات.