CVE-2026-120677
published high CVSS 3.1 · 7.2Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Comment Content
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| optimole | — | Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization0 through 4.2.18 · Other versions: unaffected | Affected | Not stated | Wordfence |
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 'comment' 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. Exploitation requires the comment to be approved by an administrator and for the affected post to contain at least one iframe or video element (e.g., a core Video block), which is sufficient under default plugin settings where video lazy loading is enabled.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- Wordfence · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| optimole | Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization | 0 through 4.2.18 (affected · semver)Default: unaffected | Wordfence · cna |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation
References
5- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/lazyload_replacer.php#L20
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/manager.php#L550
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.17/inc/manager.php#L982
- https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19
- https://www.wordfence.com/threat-intel/vulnerabilities/id/e71028cd-18bc-4b16-a376-db34b7212206?source=cve
Provider assertions
2Wordfence · cna
Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Comment Content
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c09998f52b823c1dab78dc258ff25434fcc20e95b6d566ceff20d021a41e7bd9
- Ingested
- 07 Nov 2026, 23:40:15 UTC
- Source record
- Official CVE record