# ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF <= 6.6.1 - Authenticated (Subscriber+) PHP Object Injection via Image URL Replacement

- **ID:** WPSEC-2026-3366
- **Plugin:** ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF (`shortpixel-image-optimiser`), https://wordpress.org/plugins/shortpixel-image-optimiser/
- **Affected versions:** all versions before 6.6.2
- **Fixed in:** 6.6.2 (Update to 6.6.2 or later.)
- **Severity:** High 7.1 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-502
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/shortpixel-image-optimiser
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3366/

## Description

The ShortPixel Image Optimizer plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 6.6.1, via the routine that updates image URLs in the database after an image is renamed, converted or restored. A value that WordPress stored as a serialized string, such as serialized-looking text a user saved in a profile field, was unserialized and written back as plain text, so that WordPress deserializes it the next time the value is read. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject a PHP object once the URL update runs over a value they stored that contains the path of the image being processed. No known POP chain is present in the vulnerable software. If a POP chain is present via an additional plugin or theme installed on the target system, it could allow the attacker to delete arbitrary files, retrieve sensitive data, or execute code.

## References

- https://wpsec.com/vuln/WPSEC-2026-3366/
- https://plugins.svn.wordpress.org/shortpixel-image-optimiser/tags/6.6.2/
- https://wordpress.org/plugins/shortpixel-image-optimiser/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3366/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
