Skip to main content

Optimole WordPress Plugin CVE-2026-11784

| EUVDEUVD-2026-37848 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-06-18 Wordfence GHSA-xh6r-5wcf-38f6
4.3
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Recon
    Identify target site with Optimole ≤4.2.6
  2. Delivery
    Determine Author-or-higher user identity
  3. Exploit
    Craft forged multipart POST form targeting replace_file
  4. Install
    Deliver phishing link to victim
  5. C2
    Victim clicks link while authenticated
  6. Execute
    Browser submits forged request with victim cookies
  7. Impact
    Target media attachment overwritten with attacker content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

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

Exploitation Conditions

Exploitation requires two concurrent conditions: first, the target WordPress site must be running the Optimole plugin at version 4.2.6 or earlier with the media rename/attachment management functionality active; second, an attacker must successfully socially engineer a WordPress user holding at least Author-level role (or higher: Editor, Administrator) into clicking a crafted link or visiting an attacker-controlled page while that user is authenticated to the target site. The victim must also have edit_post capability over the specific attachment targeted - Authors by default can only edit their own media uploads, which limits the scope of overwritable attachments unless a higher-privileged role (Editor/Admin) is targeted. What limits exploitation: the social engineering step (UI:R) prevents automated or mass exploitation; the current_user_can('edit_post', $id) server-side check restricts which attachments can be targeted to those the victim can legitimately edit; and the CSRF does not grant the attacker any authenticated session themselves. No special server configuration or non-default plugin settings are required beyond the plugin being installed and active.

Impact

The provided CVSS 3.1 score of 4.3 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N accurately reflects the constrained impact: integrity is limited to media attachment content, there is no confidentiality breach, and availability is not directly affected. The attack complexity is genuinely low once a victim is identified, but the social engineering prerequisite (UI:R) to trick a logged-in Author-or-higher user into clicking a link is a real friction point. No EPSS data was provided; given the CVSS score of 4.3 and the absence of KEV listing, broad automated exploitation is unlikely. However, the Wordfence disclosure includes exact source file references and line numbers, meaning a targeted attacker can trivially construct a proof-of-concept. The integrity impact, while rated Low, could be meaningful in practice: an attacker who can replace media files could substitute malicious content (e.g., replacing an official document or image displayed site-wide), constituting a content-injection or defacement scenario beyond what the raw CVSS score suggests. No conflicting signals exist between sources; the CVSS vector is consistent with the described attack mechanics.

Exploit ScenarioDerived

An attacker identifies a WordPress site running Optimole 4.2.6 or earlier and determines that a logged-in Author (or editor/admin) is active. The attacker crafts a malicious webpage containing an auto-submitting multipart HTML form that POSTs to the target site's replace_file endpoint with a chosen attachment ID and attacker-controlled file content, then tricks the Author into visiting that page via a phishing link. The victim's browser automatically submits the forged request with their session cookies attached, causing the target media attachment to be silently overwritten with the attacker's content.

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

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

Alert me

AnalysisAIv1 – Jun 18, 2026

Cross-Site Request Forgery in the Optimole WordPress plugin (all versions through 4.2.6) allows unauthenticated remote attackers to overwrite existing media attachment files by forging multipart POST requests targeting the replace_file function, provided the attacker can socially engineer a WordPress user with at least Author-level access into clicking a crafted link. The missing nonce validation in the attachment_edit.php handler means the server cannot distinguish legitimate requests from forged ones, enabling arbitrary content injection into any attachment the victim can edit. No public exploit has been identified at time of analysis and no CISA KEV listing exists, but the Wordfence disclosure provides full technical detail including source line references, lowering the bar for weaponization.

RemediationAI

A fix has been committed to the Optimole plugin SVN repository (changeset 3574315, visible at https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3574315%40optimole-wp&new=3574315%40optimole-wp); however, the specific patched release version number is not confirmed from the available data - administrators should update to the latest available version in the WordPress plugin repository and verify the installed version is newer than 4.2.6. As an interim workaround, if the plugin's media rename or attachment replacement feature is not operationally required, disabling the plugin entirely or restricting Author-level user roles from managing media can reduce the attack surface. Restricting who can hold Author or higher privileges on the WordPress installation limits the pool of viable CSRF victims. Note that disabling Author-level posting would affect normal site workflows. The Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/8a90de6e-6bd5-43b6-980d-84d25d4120ad should be monitored for a confirmed patched version number.

Affected VersionsENISA

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

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 vulnerability resides in the replace_file function within inc/media_rename/attachment_edit.php of the Optimole plugin (CPE: cpe:2.3:a:optimole:optimole_-_optimize_images_|_convert_webp_&_avif_|_cdn_&_lazy_load_|_image_optimization:*:*:*:*:*:*:*:*). Optimole is a WordPress image optimization plugin that handles WebP/AVIF conversion, CDN delivery, and lazy loading. The root cause is CWE-352 (Cross-Site Request Forgery): WordPress nonces are either absent or improperly validated before the replace_file handler processes a multipart POST, meaning a browser will automatically attach the victim's authentication cookies to any cross-origin POST crafted by an attacker. The handler does enforce a current_user_can('edit_post', $id) check (visible at attachment_edit.php L24 and L331 in both tag 4.2.5 and 4.2.6), which confirms the server enforces WordPress capability checks after authentication - but this check is bypassed in practice because the CSRF allows the forged request to ride the victim's session. The affected code paths are publicly browsable in the WordPress SVN repository, making the vulnerable logic fully disclosed.

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 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

Attacker needs no privileges (PR:N); victim interaction required (UI:R); impact limited to partial integrity of media files only.

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

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

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

DescriptionCVE.org

The Optimole - Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 4.2.6. This is due to missing or incorrect nonce validation on the replace_file function. This makes it possible for unauthenticated attackers to overwrite existing media attachments with attacker-supplied file content by supplying a forged multipart POST request targeting any attachment the victim has edit_post capability over via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. The forged request requires a victim with at least Author-level privileges, as the handler enforces a current_user_can('edit_post', $id) check; tricking an Author-level or higher user into clicking a crafted link is sufficient to trigger the overwrite against attachments that user can edit.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
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.1%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

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