CVE-2026-125094: Optimole <= 4.2.19 - Unauthenticated Stored Cross-Site Scripting via Comment body

Published Nov 20, 2026
·
Updated

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.

Affected Software

1 affected component
Optimole Optimole<=4.2.19

Event History

Nov 20, 2026
CVE Published
via MITRE·11:34 AM
Data Sourced
via MITRE·11:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which sites are exposed to exploitation?

Sites using affected Optimole versions are exposed only when the AMP plugin is active in Transitional or Standard template mode and comments are open on the target post. Open comments are the WordPress default.

2

Does an attacker need an account or user interaction to inject the payload?

No. An unauthenticated attacker can submit the malicious content through the comment parameter, and no user interaction is required for the injection itself.

3

When does the injected script execute?

The script executes when a user accesses a page containing the injected comment. This can affect users who view the targeted post or page after the payload has been stored.

4

What can be done if updating is not immediately possible?

Disable the AMP plugin or avoid its Transitional and Standard template modes, and close comments on affected posts. These conditions are required for exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203