CVE-2026-5226
Reflected XSS in Optimole WordPress Plugin Allows Script Injection
Publication date: 2026-04-11
Last updated on: 2026-04-11
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| optimole | optimize_images_in_real_time | to 4.2.3 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability exists in the Optimole β Optimize Images in Real Time plugin for WordPress, specifically in versions up to and including 4.2.3. It is a Reflected Cross-Site Scripting (XSS) issue caused by insufficient output escaping of user-supplied URL paths. These URL paths are processed in the get_current_url() function and inserted into JavaScript code via str_replace() without proper escaping for JavaScript context in the replace_content() function. This allows unauthenticated attackers to inject arbitrary web scripts that execute if a user is tricked into clicking a malicious link.
How can this vulnerability impact me? :
This vulnerability can allow attackers to execute arbitrary JavaScript in the context of the affected website. This can lead to actions such as stealing user session cookies, redirecting users to malicious sites, or performing actions on behalf of the user without their consent. Since the attack requires tricking a user into clicking a crafted link, it can be used for phishing or other social engineering attacks.