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-2025-4217: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in measuremarketing WP YouTube Video Optimizer

0
Medium
VulnerabilityCVE-2025-4217cvecve-2025-4217cwe-79
Published: Wed May 21 2025 (05/21/2025, 09:21:51 UTC)
Source: CVE
Vendor/Project: measuremarketing
Product: WP YouTube Video Optimizer

Description

The WP YouTube Video Optimizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'ib_youtube' shortcode in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 14:23:00 UTC

Technical Analysis

CVE-2025-4217 identifies a stored cross-site scripting vulnerability in the WP YouTube Video Optimizer plugin for WordPress, specifically in versions up to and including 1.2. The vulnerability stems from insufficient input sanitization and output escaping of user-supplied attributes within the plugin's 'ib_youtube' shortcode. Authenticated users with contributor-level permissions or higher can exploit this flaw by injecting arbitrary JavaScript code into pages or posts via the shortcode parameters. Because the malicious script is stored persistently in the WordPress database, it executes every time any user accesses the affected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability does not require user interaction beyond visiting the infected page and can affect all users who view the content. The CVSS 3.1 base score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, privileges required (low), no user interaction, and impacts on confidentiality and integrity but not availability. No patches or official fixes are currently linked, and no known exploits have been reported in the wild. The vulnerability is classified under CWE-79, which relates to improper neutralization of input during web page generation, a common vector for XSS attacks in web applications and plugins. The plugin is developed by measuremarketing and is used to optimize YouTube video embedding in WordPress sites, a popular CMS platform globally.

Potential Impact

This vulnerability allows authenticated contributors or higher to inject persistent malicious scripts into WordPress pages, which execute in the context of any user viewing the page. The impact includes potential session hijacking, theft of authentication cookies, unauthorized actions performed with victim user privileges, defacement, and distribution of malware. Since WordPress powers a significant portion of websites worldwide, exploitation could lead to widespread compromise of site visitors and administrators. The attack does not affect availability but compromises confidentiality and integrity of user data and site content. Organizations relying on this plugin risk reputational damage, data breaches, and loss of user trust if exploited. The medium CVSS score reflects that while exploitation requires some privileges, the attack complexity is low and can have significant consequences if successful.

Mitigation Recommendations

1. Immediately restrict contributor-level and higher user privileges to trusted personnel only until a patch is available. 2. Monitor and audit all content created or edited using the 'ib_youtube' shortcode for suspicious or unexpected script tags or JavaScript code. 3. Implement manual input validation and sanitization for shortcode attributes if possible, using WordPress security functions like wp_kses or esc_attr before saving or rendering content. 4. Disable or remove the WP YouTube Video Optimizer plugin if it is not essential or if a patch is not forthcoming. 5. Keep WordPress core and all plugins updated regularly and subscribe to security advisories from the plugin vendor and WordPress security teams. 6. Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and reduce the impact of XSS attacks. 7. Educate site administrators and contributors about the risks of injecting untrusted content and the importance of secure content management practices.

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

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-05-02T12:55:37.362Z
Cisa Enriched
false
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d9f07c4522896dcbf994a

Added to database: 5/21/2025, 9:38:15 AM

Last enriched: 2/27/2026, 2:23:00 PM

Last updated: 3/24/2026, 7:04:31 AM

Views: 56

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