Skip to main content

Optimole CVE-2026-135650

| EUVDEUVD-2026-136730 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 Wordfence
5.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Send crafted 'author' parameter unauthenticated
  2. Delivery
    Payload flows into build_url() and $low_url
  3. Exploit
    Malicious script stored in page output
  4. Execution
    Victim loads injected page
  5. Impact
    Arbitrary script executes in victim 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 plugin's 'Enable generic placeholder color' option to be DISABLED - per the description, only that configuration invokes the build_url() code path that constructs $low_url from the attacker-controlled 'author' parameter. Given that condition, an unauthenticated remote attacker (PR:N) can inject a stored payload with no authentication. The payload executes when any user subsequently accesses the injected page (stored, not reflected, so no per-attack victim interaction with an attacker-supplied link is required). Limiting factors: the non-default-sensitive configuration dependency (sites with the placeholder-color option enabled are not reachable, reflected in AC:H), impact limited to low confidentiality and integrity in the victim's browser context (C:L/I:L, no availability impact), and affected only up to version 4.2.20. Defenders should check the 'Enable generic placeholder color' setting to determine whether a given site is exposed.

Impact

This is a medium-severity stored XSS (CVSS 5.4, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N) whose real-world urgency is moderate, matching the vuln.today 'this_month' decision label rather than an emergency. Positive signals: the attack vector is network-based and unauthenticated (PR:N), the scope is changed (S:C) because injected script executes in the browsers of other users, and the issue is confirmed and documented by Wordfence with specific source-line references. Mitigating signals: AC:H reflects a genuine precondition - exploitation only works when the 'Enable generic placeholder color' option is disabled, so the vulnerable build_url()/$low_url code path is not reachable in configurations that keep that option enabled. No EPSS score was provided in the input, so exploitation probability cannot be quantified here; the CVE is NOT in CISA KEV and no public exploit or PoC reference is present, so there is no evidence of active exploitation. Net: a legitimate but non-urgent 'patch this month' item - the high install base of the plugin raises aggregate exposure, but the config dependency and limited (C:L/I:L, no availability) impact keep it below critical priority. Whether the limiting option is disabled by default is not stated in the available data and should be verified against the plugin's default settings.

Exploit ScenarioDerived

An unauthenticated attacker supplies a malicious script payload through the 'author' parameter, which is incorporated without sufficient sanitization into a URL built by the plugin's build_url() code path and stored in page output. When any user - including an administrator - later views the affected page, the injected script executes in their browser session. No public exploit code was identified in the provided sources, and the attack only works against sites where the 'Enable generic placeholder color' option is disabled.

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 26, 2026

Stored cross-site scripting in the Optimole WordPress image optimization plugin affects every release through 4.2.20: the plugin builds a low-quality image URL from the attacker-controlled 'author' parameter without adequate sanitization or output escaping, so unauthenticated remote attackers can plant script that executes in the browser of anyone who later views an injected page. The flaw is only reachable when the plugin's 'Enable generic placeholder color' option is disabled, since that configuration is the one that routes requests through the vulnerable build_url() code path and the attacker-controlled input into $low_url; sites with that option enabled are not exposed. Impact is bounded to low confidentiality and integrity in the victim's browser context (CVSS 5.4, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N); no public exploit code has been confirmed and the vulnerability is not in CISA KEV, aligning with a 'this_month' priority rather than an emergency.

RemediationAI

Vendor-released patch: update the Optimole plugin to version 4.2.21 or later, which is available in the WordPress.org plugin repository (https://plugins.trac.wordpress.org/browser/optimole-wp/#tags/4.2.21); confirm the installed version under Plugins in wp-admin or via WP-CLI before and after updating. Because exposure depends on configuration, inventory sites still running 4.2.20 or earlier and check whether 'Enable generic placeholder color' is disabled - per the advisory, that is the configuration that makes the vulnerable build_url() code path and the attacker-controlled 'author' parameter reachable, so sites with that option enabled sit outside the described exploitation path; keep in mind that changing settings is a configuration-dependent exposure reduction, not a substitute for installing 4.2.21. Where the update cannot be applied immediately, review the reporter's advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/2b86d380-5726-4b97-8d22-cac909f04986?source=cve for its current guidance and available rule coverage, and audit stored content for injected script that may already have been persisted through the 'author' parameter. There is no confirmed public exploit code, and the flaw is not listed in CISA KEV, so the update can follow a normal monthly patch cycle rather than emergency handling.

Affected VersionsENISA

Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization 0 ≤4.2.20

Affected Packages

euvd optimole_optimize_images_convert_webp_avif_cdn_lazy_load_image_optimization 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 issue is a CWE-79 cross-site scripting flaw in the Optimole WordPress plugin's lazy-load and URL replacement layer, which rewrites image markup for CDN delivery, WebP/AVIF conversion and placeholder generation. Per the reporting advisory, the vulnerable path is the build_url() routine in inc/lazyload_replacer.php (with related logic around inc/url_replacer.php and the settings handling in inc/manager.php): when the plugin's 'Enable generic placeholder color' option is turned off, that code path is invoked and constructs the $low_url value from the 'author' parameter without sufficient input sanitization or output escaping, so script injected into that parameter is stored and later emitted into pages. The stored nature means the payload does not require a victim to follow an attacker-supplied link. The 'Enable generic placeholder color' setting is a configuration prerequisite rather than a default state, which is what drives the AC:H component of the assessed vector; the S:C scope change reflects that execution occurs in the victim's browser session rather than within the server-side application. Only releases up to and including 4.2.20 carry the flaw.

Know when Optimole 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 stored XSS (PR:N, AV:N) gated by a non-default config toggle (AC:H), executing in other users' browsers (S:C) with limited C:L/I:L and no availability impact.

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:N/VI:N/VA:N/SC:L/SI:L/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 Optimole - Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'author' parameter in all versions up to, and including, 4.2.20 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. This vulnerability is only reachable when the plugin's 'Enable generic placeholder color' option is disabled, as only that configuration invokes the build_url() code path that constructs $low_url from attacker-controlled input.

Threat Intelligence Overview

EPSS Score
0.4%
Top 75% exploitable
Prevalence
Medium
popular WordPress image-optimization plugin, widely installed but not universal
Data Quality
4 sources
Confidence: Medium

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.

CVE-2026-84829 HIGH POC
8.8 Sep 16

Stored cross-site scripting in the Optimole WordPress plugin versions 4.2.3 through 4.2.11 allows unauthenticated attack

CVE-2026-96531 MEDIUM POC
6.8 Sep 26

Stored cross-site scripting in the Optimole WordPress plugin (versions 4.0.0 through 4.2.12) allows an authenticated use

CVE-2026-96530 MEDIUM POC
6.5 Oct 07

Optimole WordPress plugin versions 4.0.0 through 4.2.15 expose the site's stored third-party image-optimization service

CVE-2026-120739 HIGH
7.2 Nov 07

Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.

CVE-2026-77365 HIGH
7.2 Aug 28

Stored Cross-Site Scripting in the Optimole image optimization plugin for WordPress (all versions through 4.2.10) allows

CVE-2026-120677 HIGH
7.2 Nov 07

Stored cross-site scripting in the Optimole WordPress plugin through 4.2.18 lets unauthenticated attackers submit a craf

CVE-2026-119070 HIGH
7.2 Nov 07

Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in

CVE-2026-5217 HIGH
7.2 Apr 11

Unauthenticated stored XSS in Optimole WordPress plugin (≤4.2.2) allows attackers to inject malicious scripts via the sr

CVE-2026-125094 HIGH
7.2 Nov 20

Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in

CVE-2026-124969 HIGH
7.1 Nov 14

Arbitrary file deletion in the Optimole WordPress plugin (all versions through 4.2.19) lets unauthenticated attackers de

CVE-2024-27968 HIGH
7.1 Mar 21

Cross-Site Request Forgery (CSRF) vulnerability in Optimole Super Page Cache for Cloudflare allows Stored XSS.7.5. Rated

CVE-2026-57673 HIGH
7.1 Jul 02

Stored/reflected Cross-Site Scripting in the Optimole WordPress image-optimization plugin (versions 4.2.7 and earlier) l

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