Technical impact
The Optimole plugin for WordPress contains a stored cross‑site scripting flaw in the processing of the 'comment' field. Unauthenticated users can submit a comment that, after administrator approval, is stored with unsanitized content. When a post containing at least one iframe or video element is viewed, the injected scripts execute in the attacker’s browser context. The flaw arises from insufficient input sanitization and output escaping on the comment content.
Affected Systems
WordPress sites that use the Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin in any release up to and including version 4.2.18 are impacted. All users who view posts containing an iframe or video block in an affected installation are at risk if a comment has been approved by an administrator.
Risk and Exploitability
The vulnerability has a CVSS score of 7.2, indicating high severity. No EPSS data is available, and the issue is not listed in CISA KEV. Exploitation requires an administrator to approve the malicious comment and for the affected post to include an iframe or video element, conditions that are common in many WordPress sites using the default lazy‑loading setting.