Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify target site with Optimole ≤4.2.6
-
DeliveryDetermine Author-or-higher user identity
-
ExploitCraft forged multipart POST form targeting replace_file
-
InstallDeliver phishing link to victim
-
C2Victim clicks link while authenticated
-
ExecuteBrowser submits forged request with victim cookies
-
ImpactTarget 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Attacker needs no privileges (PR:N); victim interaction required (UI:R); impact limited to partial integrity of media files only.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Stored cross-site scripting in the Optimole WordPress plugin versions 4.2.3 through 4.2.11 allows unauthenticated attack
Stored cross-site scripting in the Optimole WordPress plugin (versions 4.0.0 through 4.2.12) allows an authenticated use
Optimole WordPress plugin versions 4.0.0 through 4.2.15 expose the site's stored third-party image-optimization service
Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.
Stored Cross-Site Scripting in the Optimole image optimization plugin for WordPress (all versions through 4.2.10) allows
Stored cross-site scripting in the Optimole WordPress plugin through 4.2.18 lets unauthenticated attackers submit a craf
Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in
Unauthenticated stored XSS in Optimole WordPress plugin (≤4.2.2) allows attackers to inject malicious scripts via the sr
Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in
Arbitrary file deletion in the Optimole WordPress plugin (all versions through 4.2.19) lets unauthenticated attackers de
Cross-Site Request Forgery (CSRF) vulnerability in Optimole Super Page Cache for Cloudflare allows Stored XSS.7.5. Rated
Stored/reflected Cross-Site Scripting in the Optimole WordPress image-optimization plugin (versions 4.2.7 and earlier) l
EUVD-2026-37848
GHSA-xh6r-5wcf-38f6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB