Optimole: Stored Cross-Site Scripting (CVE-2026-125094)
The Optimole WordPress plugin up to version 4.2.19 is vulnerable to stored Cross-Site Scripting (XSS) via the 'comment' parameter, allowing unauthenticated attackers to execute arbitrary web scripts if the AMP plugin is active.
CVE search metadata
CVE search record: CVE-2026-125094. Severity: high. CVSS: 7.2. KEV: no. Product: Optimole. Brief: Optimole: Stored Cross-Site Scripting (CVE-2026-125094). Brief link: https://feed.craftedsignal.io/briefs/2026-11-optimole-xss-cve-2026-125094/
Triage facts
Revision 1- Applicability
- Optimole
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 20, 14:38 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Overview
The Optimole plugin for WordPress, specifically the 'Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization' component, contains a stored Cross-Site Scripting (XSS) vulnerability. Versions up to and including 4.2.19 fail to properly sanitize input and escape output in the 'comment' parameter. This flaw permits unauthenticated attackers to inject malicious scripts that execute in the browser of any user who views the affected page.
Impact
Successful exploitation results in the execution of arbitrary JavaScript within the context of the victim's session. This may lead to session hijacking, unauthorized actions on behalf of the user, or further client-side attacks. The impact is elevated by the ability for unauthenticated users to trigger the exploit.
Recommendation
- Identify and inventory all WordPress sites running the Optimole plugin.
- Disable the AMP plugin or switch to a template mode other than 'Transitional' or 'Standard' if immediate patching is not possible.
- Monitor vendor security channels for the release of a security patch addressing CVE-2026-125094. As of this report, a fixed version has not been disclosed by the vendor.
- Audit existing comments on public-facing posts for suspicious script tags or obfuscated JavaScript.
Threat Hunt
Search WordPress comment tables for script-related HTML tags like <script>, onerror, or onload attributes.
Data: WordPress database (wp_comments table)
Mitigations
Disable AMP plugin or change template mode to incompatible modes if possible.