CVE-2026-5217: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimole Optimole – Optimize Images in Real Time
CVE-2026-5217 is a stored cross-site scripting (XSS) vulnerability in the Optimole – Optimize Images in Real Time WordPress plugin, affecting all versions up to 4. 2. 2. The vulnerability arises from insufficient sanitization and escaping of the 's' parameter in the unauthenticated /wp-json/optimole/v1/optimizations REST endpoint. Although the endpoint uses an HMAC signature and timestamp for validation, these values are exposed in frontend HTML, allowing any visitor to exploit the flaw. The malicious input is stored and later injected into the srcset attribute without proper escaping, enabling arbitrary script execution in users' browsers. The vulnerability has a CVSS score of 7. 2 (high severity). No official patch or remediation guidance is currently available.
AI Analysis
Technical Summary
The Optimole WordPress plugin suffers from a stored cross-site scripting vulnerability due to improper neutralization of input in the 's' parameter of the /wp-json/optimole/v1/optimizations REST endpoint. The endpoint validates requests with an HMAC signature and timestamp, but these are exposed in frontend HTML, making the endpoint effectively unauthenticated. The plugin uses sanitize_text_field() which strips HTML tags but does not escape double quotes, allowing crafted input to be stored via transients and later injected verbatim into the srcset attribute in tag_replacer.php. This enables unauthenticated attackers to inject and execute arbitrary scripts in the context of any user visiting the affected pages.
Potential Impact
An attacker can inject malicious scripts that execute in the browsers of users visiting pages where the injected payload is rendered. This can lead to theft of sensitive information, session hijacking, or other malicious actions within the context of the vulnerable website. The vulnerability does not require authentication and has a network attack vector with low complexity, making exploitation feasible. The CVSS score of 7.2 reflects a high severity impact on confidentiality and integrity without affecting availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider disabling or removing the Optimole plugin to prevent exploitation. Monitor vendor channels for updates and apply patches promptly once available. Avoid relying on the HMAC signature and timestamp validation as these are exposed and do not prevent exploitation in this case.
CVE-2026-5217: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimole Optimole – Optimize Images in Real Time
Description
CVE-2026-5217 is a stored cross-site scripting (XSS) vulnerability in the Optimole – Optimize Images in Real Time WordPress plugin, affecting all versions up to 4. 2. 2. The vulnerability arises from insufficient sanitization and escaping of the 's' parameter in the unauthenticated /wp-json/optimole/v1/optimizations REST endpoint. Although the endpoint uses an HMAC signature and timestamp for validation, these values are exposed in frontend HTML, allowing any visitor to exploit the flaw. The malicious input is stored and later injected into the srcset attribute without proper escaping, enabling arbitrary script execution in users' browsers. The vulnerability has a CVSS score of 7. 2 (high severity). No official patch or remediation guidance is currently available.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Optimole WordPress plugin suffers from a stored cross-site scripting vulnerability due to improper neutralization of input in the 's' parameter of the /wp-json/optimole/v1/optimizations REST endpoint. The endpoint validates requests with an HMAC signature and timestamp, but these are exposed in frontend HTML, making the endpoint effectively unauthenticated. The plugin uses sanitize_text_field() which strips HTML tags but does not escape double quotes, allowing crafted input to be stored via transients and later injected verbatim into the srcset attribute in tag_replacer.php. This enables unauthenticated attackers to inject and execute arbitrary scripts in the context of any user visiting the affected pages.
Potential Impact
An attacker can inject malicious scripts that execute in the browsers of users visiting pages where the injected payload is rendered. This can lead to theft of sensitive information, session hijacking, or other malicious actions within the context of the vulnerable website. The vulnerability does not require authentication and has a network attack vector with low complexity, making exploitation feasible. The CVSS score of 7.2 reflects a high severity impact on confidentiality and integrity without affecting availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider disabling or removing the Optimole plugin to prevent exploitation. Monitor vendor channels for updates and apply patches promptly once available. Avoid relying on the HMAC signature and timestamp validation as these are exposed and do not prevent exploitation in this case.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-31T11:22:09.160Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d9a5741cc7ad14da144142
Added to database: 4/11/2026, 1:35:48 AM
Last enriched: 4/11/2026, 1:50:49 AM
Last updated: 4/11/2026, 3:41:18 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.