All vulnerabilities

WordPress plugins

CVE-2026-125094

Optimole <= 4.2.19 - Unauthenticated Stored Cross-Site Scripting via Comment body

Severity
High 7.2
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
20 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Sources
CVE Program

Description

The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.2.19 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 AMP plugin to be active in Transitional or Standard template mode, and comments must be open on the target post, which is the WordPress default.

From the CVE Program.

Affected software

SoftwareAffected versions
Optimole WP (WordPress plugin)WordPress plugins · wp-plugin:optimole-wp
  • Every version up to 4.2.19

About Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

Automatically optimize images with bulk compression, lazy loading, WebP/AVIF conversion & CloudFront image CDN. Boost Core Web Vitals & conversions.

From its WordPress.org page.
Active installations
200,000+WordPress.org, 15 Nov 2026
Latest version
4.2.20WordPress.org, 15 Nov 2026
Last updated
12 Nov 2026WordPress.org
Rating
4.7 out of 5 (641 ratings)WordPress.org, 15 Nov 2026
Requires WordPress
5.5WordPress.org
Requires PHP
7.4WordPress.org
Tested up to WordPress
7.1.4WordPress.org
Author
OptimoleWordPress.org
In the directory since
23 Sept 2018WordPress.org

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-125094