Skip to main content

ShortPixel Image Optimizer CVE-2026-120486

| EUVDEUVD-2026-132041 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-21 Wordfence GHSA-3p8g-9fq8-rf59
5.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach site as unauthenticated visitor
  2. Delivery
    Submit comment with url() payload in allowed <acronym title>
  3. Exploit
    kses preserves attribute on save
  4. Execution
    CDN output-buffer rewriter breaks attribute boundary at render
  5. Persist
    Inject script into page
  6. Impact
    Script executes in each viewer's browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the site administrator to have enabled the non-default 'Deliver WebP/AVIF images using the ShortPixel CDN' (useCDN) option; without it, the vulnerable ob_start CDN URL rewriter does not run and the attack fails. When that option is on, exploitation is unauthenticated: any visitor can post a comment containing a crafted url() payload embedded in a kses-allowed construct such as <acronym title="...">, which WordPress preserves on save, with the attribute-boundary breakout occurring only at render time where kses no longer applies. Limiting factors: the useCDN feature must be enabled (configuration-dependent, not default), the payload must fit within an allowed HTML tag/attribute that survives comment sanitization, and impact is confined to script execution in viewers' browsers (C:L/I:L), not the server.

Impact

This is a moderate, conditional risk rather than a drop-everything emergency, and the signals are largely consistent. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N, base 5.4) reflects a network-reachable, unauthenticated stored XSS whose AC:H encodes the real-world gating: exploitation only works when the administrator has enabled the non-default 'Deliver WebP/AVIF images using the ShortPixel CDN' (useCDN) option, and the payload must survive WordPress comment kses inside an allowed HTML construct. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with the conditional nature. No KEV entry, no EPSS score, and no SSVC fields are present in the input, and no public exploit or PoC reference is provided - so there is no evidence of active exploitation or automatability. The absence of EPSS/KEV data is a gap, not a contradiction: treat exploitation likelihood as low-to-moderate and driven by whether a given site runs the CDN option. The strongest signal is defensive: the vendor (6.6.2 release notes) confirms the fix and independent discovery by both WPScan (Jakub Herman) and Wordfence, so the flaw is real and corroborated, but its impact is limited to low confidentiality/integrity in a victim's browser session, not server compromise.

Exploit ScenarioDerived

On a WordPress site running ShortPixel Image Optimizer <=6.6.1 with the 'Deliver WebP/AVIF images using the ShortPixel CDN' option enabled, an unauthenticated visitor submits a blog comment containing a crafted url() payload inside an allowed tag such as <acronym title="...">. WordPress comment kses preserves the attribute on save, and when any later visitor (or an admin moderating comments) loads the page, the plugin's ob_start CDN URL rewriter breaks out of the attribute boundary at render time and executes the attacker's script in that user's browser. No public exploit identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 21, 2026

Unauthenticated stored cross-site scripting affects the ShortPixel Image Optimizer plugin for WordPress through version 6.6.1 when the non-default useCDN option is enabled. A visitor can submit a comment containing a crafted url() payload inside a kses-allowed construct such as an acronym element with a title attribute; WordPress preserves it on save, and the CDN output-buffer rewriter later emits it without kses protection, allowing script execution in viewers' browsers. The vendor fixed this in 6.6.2, and no public exploit was identified at time of analysis.

RemediationAI

Vendor-released patch: 6.6.2. Upgrade ShortPixel Image Optimizer to 6.6.2 or later; the v6.6.2 release notes explicitly list an XSS fix hardening CDN URL rewriting of inline background images at https://github.com/short-pixel-optimizer/shortpixel-image-optimiser/releases/tag/v6.6.2. If immediate upgrade is not possible, disable the non-default Deliver WebP/AVIF images using the ShortPixel CDN option (useCDN), which prevents the vulnerable ob_start CDN URL rewriter from running; the trade-off is loss of CDN-based WebP/AVIF delivery. The Wordfence advisory is at https://www.wordfence.com/threat-intel/vulnerabilities/id/f3c94064-3b2f-400e-8dc3-c78029e50142?source=cve.

Affected VersionsENISA

ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF 0 ≤6.6.1

Affected Packages

euvd shortpixel_image_optimizer_optimize_images_convert_webp_avif no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The plugin’s front-end CDN controller uses output buffering (ob_start) to rewrite inline background-image URLs for WebP/AVIF delivery. WordPress comment kses allows certain HTML constructs and attributes to persist in stored comments, but the vulnerable ShortPixel rewriter performs its URL substitution later at render time, outside kses, so a crafted url() value can break out of an attribute boundary and inject script. This is CWE-79 (improper neutralization of input during web page generation), with the affected surface being the comment parameter and the ShortPixel CDN URL rewriting path in CDNController and FrontController; the CPE identifies the shortpixel_image_optimizer plugin. Exploitation is limited to sites with the non-default useCDN setting enabled; the assessed vector is CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N, with low confidentiality and integrity impact and no availability impact.

Know when Shortpixel Image Optimizer Optimize Images Convert Webp Avif gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 5.4 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Unauthenticated remote comment submission keeps PR:N/AV:N; AC:H reflects the required non-default useCDN config and crafted kses-surviving boundary breakout; S:C and C:L/I:L capture browser-context script execution.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
popular WordPress image-optimization plugin, but not present on every site
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy