Stored Cross-Site Scripting in Optimole Plugin for WordPress
Key Information:
- Vendor
WordPress
- CVE ID
- CVE ID:
- CVE-2026-5217
- Vendor
- CVE Published:
- 11 April 2026
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory β2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Optimole β Optimize Images In Real Time. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- It can be exploited remotely without credentials.
- Its CVSS severity is high (7.2).
What is CVE-2026-5217?
The Optimole plugin for WordPress is vulnerable to a Stored Cross-Site Scripting attack due to insufficient input sanitization of the 's' parameter in the REST endpoint /wp-json/optimole/v1/optimizations. This vulnerability allows unauthenticated attackers to execute arbitrary web scripts on affected sites. The issue arises because the plugin stores the user-supplied descriptor without proper escaping, allowing malicious scripts to be injected into the srcset attribute on pages viewed by users. Proper security practices must be adopted to prevent such vulnerabilities, emphasizing the importance of thorough input validation and output sanitization.
Affected Version(s)
Optimole β Optimize Images in Real Time 0 <= 4.2.2
References
More WordPress Vulnerabilities
Object Injection in Ultimate Member
Unauthorized Password Reset in User Registration Aide Plugin for WordPress
Remote Code Execution in WP Duplicate Plugin
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction