CVE-2026-120486
ShortPixel Image Optimizer <= 6.6.1 - Unauthenticated Stored Cross-Site Scripting via Comment Content via CDN URL Rewriter
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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF shortpixel |
≥ 0; ≤ 6.6.1 (affected, semver)
Other versions: unaffected |
CNA: Wordfence |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 5.4 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N | CNA: Wordfence |
| 3.1 / 5.4 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f3c94064-3b2f-400e-8dc3-c78029e50142?source=cveCNA: Wordfence
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L1002CNA: Wordfence
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L752CNA: Wordfence
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L508CNA: Wordfence
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L104CNA: Wordfence
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/FrontController.php#L38CNA: Wordfence
- https://github.com/short-pixel-optimizer/shortpixel-image-optimiser/releases/tag/v6.6.2CNA: Wordfence
- https://github.com/short-pixel-optimizer/shortpixel-image-optimiser/releases/tag/v6.6.2[email protected]
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L1002[email protected]
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L104[email protected]
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L508[email protected]
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/Front/CDNController.php#L752[email protected]
- https://plugins.trac.wordpress.org/browser/shortpixel-image-optimiser/tags/6.6.1/class/Controller/FrontController.php#L38[email protected]
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f3c94064-3b2f-400e-8dc3-c78029e50142?source=cve[email protected]
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.