Optimole <= 4.2.3 - Reflected Cross-Site Scripting via Page Profiler URL

6.1
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-5226
CVSS 6.1 (Medium)
Publicly Published April 10, 2026
Last Updated April 13, 2026
Researchers Ali Cem Havare
Sencer Kılıç
Cesi De Taranto

Description

The Optimole – Optimize Images in Real Time plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via URL paths in versions up to, and including, 4.2.3 This is due to insufficient output escaping on user-supplied URL paths in the get_current_url() function, which are inserted into JavaScript code via str_replace() without proper JavaScript context escaping in the replace_content() function. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

Software Type Plugin
Software Slug optimole-wp (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.2.4, or a newer patched version
Affected Version
  • <= 4.2.3
Patched Version
  • 4.2.4

Recent vulnerabilities in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

# Title CVE ID CVSS Researchers Date
1 Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization <= 4.2.7 - Unauthenticated Stored Cross-Site Scripting CVE-2026-57673 7.2 daroo June 30, 2026
2 Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization <= 4.2.6 - Cross-Site Request Forgery via 'optml_replace_file' AJAX Action CVE-2026-11784 4.3 Alexandru Bucur June 17, 2026
3 Optimole <= 4.2.2 - Unauthenticated Stored Cross-Site Scripting via Srcset Descriptor Parameter CVE-2026-5217 7.2 Quốc Huy (jtwings) April 10, 2026
4 Image optimization service by Optimole <= 4.1.0 - Insecure Direct Object Reference to Authenticated (Author+) Media Offload CVE-2025-11519 4.3 Dmitrii Ignatyev October 17, 2025
5 Image Optimization by Optimole – Lazy Load, CDN, Convert WebP & AVIF <= 3.12.10 - Authenticated (Author+) Stored Cross-Site Scripting via SVG Upload CVE-2024-4636 6.4 wesley (wcraft) May 14, 2024
6 ThemeIsle SDK <= Various Versions - Missing Authorization CVE-2024-1047 5.3 Francesco Carlucci February 1, 2024
7 Image optimization & Lazy Load <= 3.3.1 - Admin+ Stored Cross-Site Scripting CVE-2022-0969 4.8 Kévin Mosbahi (Mika) March 21, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation