ShortPixel Image Optimizer <= 6.4.3 - Authenticated (Author+) Stored Cross-Site Scripting via Attachment Title

5.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-4335
CVSS 5.4 (Medium)
Publicly Published March 25, 2026
Last Updated March 26, 2026
Researcher daroo

Description

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF

Software Type Plugin
Software Slug shortpixel-image-optimiser (view on wordpress.org)
Patched? Yes
Remediation Update to version 6.4.4, or a newer patched version
Affected Version
  • <= 6.4.3
Patched Version
  • 6.4.4

Recent vulnerabilities in ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF

# Title CVE ID CVSS Researchers Date
1 ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF <= 6.4.3 - Authenticated (Author+) PHP Object Injection CVE-2026-39471 7.5 daroo April 20, 2026
2 ShortPixel Image Optimizer <= 6.4.2 - Authenticated (Editor+) Arbitrary File Read via 'loadFile' Parameter CVE-2026-1246 4.9 0N0ise February 4, 2026
3 ShortPixel Image Optimizer <= 6.3.4 - Authenticated (Contributor+) Settings Import/Export CVE-2025-11378 5.4 Dmitrii Ignatyev October 17, 2025
4 ShortPixel Image Optimizer <= 5.6.3 - Missing Authorization CVE-2024-48044 4.3 Rafie Muhammad October 13, 2024
5 ShortPixel Image Optimizer <= 5.6.3 - Authenticated (Editor+) SQL Injection CVE-2024-48043 4.9 Rafie Muhammad October 13, 2024
6 ShortPixel Image Optimizer <= 5.4.1 - Authenticated(Editor+) PHP Object Injection 6.6 September 14, 2023
7 ShortPixel Image Optimizer <= 4.22.9 - Reflected Cross-Site Scripting 6.1 WPScanTeam June 2, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation