Vulnerability details
CVE-2026-120739
Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Page Profiler srcset Descriptor
Official description
The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 's (missing_srcsets[*][*].s)' parameter in all versions up to, and including, 4.2.18 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The HMAC signature required to pass the REST endpoint's authorization check is published in plaintext to unauthenticated visitors inside the inline optimoleDataOptimizer JavaScript object on any page with an incomplete profile, making the effective authentication barrier nonexistent.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 7.2High | 3.1 | CVEProject cvelistV5 (CNA) (Wordfence) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| Optimole | Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization | v ≤ 4.2.18 | CVEProject cvelistV5 (CNA) |
References and advisories
7- https://www.wordfence.com/threat-intel/vulnerabilities/id/5d60007c-8957-4c46-8c5c-47b7f626f0bb?source=cve
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/rest.php#L159
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/rest.php#L1020
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/tag_replacer.php#L529
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/tag_replacer.php#L312
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/manager.php#L519
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3784828%40optimole-wp&new=3784828%40optimole-wp
Details
- Published
- 2026-11-07
- Last updated
- 2026-11-07
- State
- Published
- Assigner (CNA)
- Wordfence
Exploit prediction (EPSS)
SSVC assessment (CISA)
- Automatable
- No
- Exploitation
- None
- Technical impact
- Partial
Weaknesses (CWE)
- CWE-79Improper Neutralization of Input During Web Page Generation