Stored cross-site scripting in ShortPixel Image Optimizer plugin
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
The ShortPixel Image Optimizer plugin for WordPress is affected in all versions up to and including 6.6.1. Insufficient input sanitization and output escaping of the comment parameter (CWE-79) let an unauthenticated attacker store script that runs when a user accesses an affected page. The attack works only when the administrator has enabled the Deliver WebP/AVIF images using the ShortPixel CDN option.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ShortPixel | ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF | up to 6.6.1 | — | No fix listed | CNA |
- ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF VendorShortPixel Affected up to 6.6.1 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for ShortPixel Image Optimizer.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Timeline
- 2026-11-21 Threatist record created from CVE-2026-120486
- 2026-11-21 Alias added: GHSA-3p8g-9fq8-rf59
- 2026-11-23 CISA SSVC decision points changed
References
Other 7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f3c94064-3b2f-400e-8dc3-c78029e50142?source=cve
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L1002
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L752
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L508
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L104
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/FrontController.php#L38
- https://github.com/short-pixel-optimizer/shortpixel-image-optimiser/releases/tag/v6.6.2
More ShortPixel vulnerabilities
- TI-2023-04280 Enable Media Replace < 4.1.3 - Author+ PHP Object Injection CVSS 3.1HIGH 8.8
- TI-2023-00241 Enable Media Replace < 4.0.2 - Author+ Arbitrary File Upload CVSS 3.1HIGH 8.8
- TI-2023-00318 ShortPixel Adaptive Images < 3.6.3 - Reflected XSS CVSS 3.1MEDIUM 6.1
- TI-2026-14215 ShortPixel Image Optimizer <= 6.5.5 - Authenticated (Author+) PHP Object Injection via Nested JSON Post Content CVSS 3.1HIGH 8.8
- TI-2026-83296 PHP object injection in WordPress Enable Media Replace plugin CVSS 3.1HIGH 8.8
- TI-2023-15794 WordPress ShortPixel Adaptive Images Plugin <= 3.7.1 is vulnerable to Cross Site Request Forgery (CSRF) CVSS 3.1HIGH 8.8
Sources
- CVE-2026-120486 · CVE Program
- CVE-2026-120486 · NVD
- FIRST EPSS
- GHSA-3p8g-9fq8-rf59 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences