Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-5226: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimole Optimole – Optimize Images in Real Time

0
Medium
VulnerabilityCVE-2026-5226cvecve-2026-5226cwe-79
Published: Sat Apr 11 2026 (04/11/2026, 01:24:57 UTC)
Source: CVE Database V5
Vendor/Project: optimole
Product: Optimole – Optimize Images in Real Time

Description

The Optimole – Optimize Images in Real Time plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via URL paths in versions up to, and including, 4.2.3 This is due to insufficient output escaping on user-supplied URL paths in the get_current_url() function, which are inserted into JavaScript code via str_replace() without proper JavaScript context escaping in the replace_content() function. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/18/2026, 14:48:18 UTC

Technical Analysis

The Optimole – Optimize Images in Real Time WordPress plugin versions up to 4.2.3 contain a reflected XSS vulnerability due to improper output escaping of user-supplied URL paths in the get_current_url() function. These paths are inserted into JavaScript code via str_replace() in the replace_content() function without proper JavaScript context escaping. This flaw enables unauthenticated attackers to inject malicious scripts that execute in the context of users who click on crafted links, potentially leading to information disclosure or session hijacking. The vulnerability is tracked as CVE-2026-5226 with a CVSS 3.1 base score of 6.1 (medium severity). No vendor advisory or patch is currently available, and no exploits have been reported in the wild.

Potential Impact

Successful exploitation allows unauthenticated attackers to execute arbitrary JavaScript in the context of users visiting affected pages, potentially leading to information disclosure or user session compromise. The impact is limited to confidentiality and integrity, with no direct availability impact reported.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider implementing temporary mitigations such as disabling the plugin or restricting access to affected pages. Avoid clicking on suspicious links that could exploit this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-03-31T13:15:00.960Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69d9a5741cc7ad14da14414b

Added to database: 4/11/2026, 1:35:48 AM

Last enriched: 4/18/2026, 2:48:18 PM

Last updated: 5/26/2026, 7:55:48 AM

Views: 111

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses