CVE-2025-11241 Yoast SEO Premium 25.7-25.9 - Authenticated (Contributor+) Stored Cross-Site Scripting

Medium 6.4 Published Updated

Authenticated contributors can inject malicious JavaScript via flawed regex in Yoast SEO Premium, enabling stored XSS attacks against site visitors.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-11241?

CVE-2025-11241 is a medium-severity cross-site scripting vulnerability in Yoast SEO Premium, published on 3 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Yoast SEO Premium plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions 25.7 to 25.9 due to a flawed regex used to remove an attribute in post content, which can be abused to inject arbitrary HTML attributes, including JavaScript event handlers. This vulnerability allows a user with Contributor access or higher to create a post containing a malicious JavaScript payload.

Weakness: CWE-80

Which versions are affected by CVE-2025-11241?

How do I fix CVE-2025-11241?

No fix has been published for CVE-2025-11241 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-11241 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11241 exists.

Sources

Also known as GHSA-q494-c83w-2xrf.

Is CVE-2025-11241 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free