CVE-2026-120486ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF Cross-site Scripting (XSS)
NVDCVSS scored by security@wordfence.com
Vulnerability Summary
The ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 6.6.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the administrator to have enabled the 'Deliver WebP/AVIF images using the ShortPixel CDN' (useCDN) option, after which any unauthenticated visitor can submit a comment containing a crafted url() payload inside an allowed HTML construct such as <acronym title="...">, which WordPress comment kses preserves on save; the dangerous attribute-boundary breakout occurs only at render time inside the ob_start output-buffer rewriter, where kses does not apply.
CVSS v3.1 Base Metrics — Score 5.4 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:NAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF <= 6.6.1
- ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF 6.6.1
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 21, 2026Published
- Nov 21, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF CVEsYou are reading CVE-2026-120486. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsMore ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF CVEs
External References
- Referencehttps://github.com/short-pixel-optimizer/shortpixel-image-optimiser/releases/tag/v6.6.2
- Referencehttps://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L1002
- Referencehttps://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L104
- Referencehttps://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L508
- Referencehttps://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L752
- Referencehttps://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/FrontController.php#L38
- Referencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/f3c94064-3b2f-400e-8dc3-c78029e50142?source=cve
Data last checked: Nov 21, 2026 08:01 UTC