Description
The Yoast SEO – Advanced SEO with real-time guidance and built-in AI plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the the `jsonText` block attribute in all versions up to, and including, 27.1.1 due to insufficient input sanitization and output escaping. 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.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’)
Product status
* (semver)
Timeline
| 2026-03-21: | Disclosed |
Credits
Osvaldo Noe Gonzalez Del Rio
References
www.wordfence.com/…-5716-49e0-a04e-d0dae527fcfc?source=cve
plugins.trac.wordpress.org/…rc/generators/schema/howto.php
plugins.trac.wordpress.org/…27.0/inc/class-wpseo-utils.php
github.com/Yoast/wordpress-seo/pull/23035
plugins.trac.wordpress.org/changeset/3475308/wordpress-seo
