
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-11241 is a Stored Cross-Site Scripting (XSS) vulnerability in the Yoast SEO Premium plugin for WordPress, affecting versions 25.7 through 25.9. The flaw stems from a defective regular expression used to sanitize post content, which can be bypassed to inject arbitrary HTML attributes — including JavaScript event handlers. It was published on October 3, 2025, and assigned a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, Red Hat CVE).
The root cause is classified as CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page). The plugin uses a flawed regex intended to strip a specific HTML attribute from post content; however, the regex can be abused to smuggle arbitrary HTML attributes — including JavaScript event handlers such as onerror or onmouseover — into the rendered page. Exploitation requires at minimum Contributor-level access to the WordPress site, meaning the attacker must be an authenticated user who can create or edit posts. A technical write-up detailing the regex bypass technique is available at StealthCopter (Wordfence).
Successful exploitation allows an authenticated attacker with Contributor access or higher to store a malicious JavaScript payload within a WordPress post. When the post is viewed by other users — including administrators — the payload executes in their browser context, potentially enabling session hijacking, credential theft, unauthorized administrative actions, or further site compromise. The CVSS scope is marked as Changed, reflecting that the impact extends beyond the attacker's own session to affect other users of the site (Wordfence, Red Hat CVE).
No public exploit code or active in-the-wild exploitation has been confirmed as of the available data. The EPSS score is approximately 0.029% (0.000290), indicating a low probability of near-term exploitation (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access at the Contributor level or above, which limits the attack surface compared to unauthenticated vulnerabilities.
<img src=x onerror=alert(document.cookie)> in a way that bypasses the plugin's sanitization regex.onerror, onmouseover, onfocus) within post content authored by Contributor-level accounts.wp_posts table); database audits should check for event handler attributes in post content fields.Yoast released version 26.0 of Yoast SEO Premium, which addresses this vulnerability by correcting the flawed regex used to sanitize post content. Site administrators should update the plugin to version 26.0 or later immediately (Yoast Changelog). As a temporary workaround, restricting Contributor-level user registrations or auditing existing Contributor accounts can reduce exposure until the patch is applied. Sites using Wordfence can also leverage its firewall rules for additional protection (Wordfence).
Wordfence, which discovered and reported the vulnerability, published a detailed advisory and included it in their weekly WordPress vulnerability report for the period of September 29 – October 5, 2025 (Wordfence Weekly Report). Security Online Info covered the flaw with a headline noting potential exposure of millions of WordPress sites (Security Online). Black Kite included the vulnerability in their Focus Friday third-party risk management analysis (Black Kite). Some community coverage used hyperbolic framing (e.g., "complete takeover" of 10 million sites), though the actual risk is constrained by the Contributor-level access requirement.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."