ShortPixel Image Optimizer <= 6.6.1 - Unauthenticated Stored Cross-Site Scripting via Comment Content via CDN URL Rewriter
Strategic Overview
- Status
- Patched in 6.6.2
- Affected Version
<= 6.6.1- CVSS
- 5.4Medium
- Weakness type
- CWE-79 · Improper Neutralization of Input During Web Page Generation
- CVE
CVE-2026-120486
At a glance
CVE-2026-120486 is a medium-severity Improper Neutralization of Input During Web Page Generation vulnerability in the ShortPixel Image Optimizer WordPress plugin, affecting versions <= 6.6.1. It carries a CVSS score of 5.4 (reachable over the network). Exploitation requires no authentication. The issue is fixed in version 6.6.2; sites on affected versions should update now. Disclosed November 2026, reported by theviper17y.
Vulnerability Overview
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.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no privileges on the target site, and no interaction from a victim user.
CWE-79: Improper Neutralization of Input During Web Page Generation
ShortPixel Image Optimizer <= 6.6.1 carries this weakness at comment, and reaching it takes no account at all. Cross-site scripting happens when input from a request is written into a page without being escaped for the context it lands in, so the browser parses attacker-supplied text as markup or script.
Injected script runs with the privileges of whoever views the affected page, which is how these flaws turn into administrator session theft, silent account creation or persistent backdoors in page content. For ShortPixel Image Optimizer the fix is 6.6.2: builds <= 6.6.1 are affected, anything from 6.6.2 onward is not.
Remediation
Update to version 6.6.2, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: ShortPixel Image Optimizer 6.6.2 closes this, and updating the plugin is the step that ends it.
- Firewall
- Login Security
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF
- 8.8CVE-2026-17086: ShortPixel Image Optimizer PHP Object Injection
CVE-2026-17086 - 7.5CVE-2026-97246: ShortPixel Image Optimizer PHP Object Injection
CVE-2026-97246 - 7.5CVE-2026-39471: ShortPixel Image Optimizer PHP Object Injection
CVE-2026-39471 - 6.6ShortPixel Image Optimizer <= 5.4.1 PHP Object Injection
- 5.4CVE-2025-11378: ShortPixel Image Optimizer Settings Import/Export
CVE-2025-11378 - 4.9CVE-2026-1246: ShortPixel Image Optimizer <= 6.4.2 Arbitrary File Read
CVE-2026-1246 - 4.9CVE-2024-48043: ShortPixel Image Optimizer <= 5.6.3 SQL Injection
CVE-2024-48043 - 4.3CVE-2024-48044: ShortPixel Image Optimizer Missing Authorization
CVE-2024-48044
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C