CVE-2026-5226: Optimole <= 4.2.3 - Reflected Cross-Site Scripting via Page Profiler URL
Vulnerability summary
CVE-2026-5226 is a medium (CVSS 6.1) vulnerability in optimole optimole – optimize images in real time. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 45.3% of scored vulnerabilities. Fixed in 4.2.4.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 11-04-2026PublishedVulnerability first disclosed.
- 13-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- wordfenceSource6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.52%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.50% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Optimole1 product
Wordpress1 product
- optimole-wp≤ 4.2.3 (fixed in 4.2.4)
2 vendors · 2 products