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

Medium 6.1 Published Updated

Unauthenticated attackers can inject arbitrary web scripts via URL paths in the Optimole WordPress plugin, executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-5226?

CVE-2026-5226 is a medium-severity cross-site scripting vulnerability in Optimole – Optimize Images in Real Time, published on 11 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-5226?

How do I fix CVE-2026-5226?

No fix has been published for CVE-2026-5226 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-5226 being exploited?

There is no known exploitation of CVE-2026-5226 in the wild and no public exploit code.

Sources

Also known as GHSA-c2rf-g3vq-gg84.

Is CVE-2026-5226 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free