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 `yoast-schema` block attribute in all versions up to, and including, 26.8 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-01-09: | Discovered |
| 2026-02-05: | Disclosed |
Credits
suyoung kim
References
www.wordfence.com/...-ed2f-439b-9cee-f2e5d46121b6?source=cve
plugins.trac.wordpress.org/...resenters/schema-presenter.php
plugins.trac.wordpress.org/...26.8/inc/class-wpseo-utils.php
plugins.trac.wordpress.org/...enerators/schema-generator.php