Security Alert Summary
The Yoast SEO – Advanced SEO with real-time guidance and built-in AI plugin for WordPress is vulnerable to a stored Cross-Site Scripting (XSS) issue via the jsonText block attribute in affected versions up to and including 27.1.1. Authenticated users with Contributor-level access or higher can inject scripts into pages that will execute whenever a user views an injected page.
CVE Details
- CVE ID:
CVE-2026-3427 - Affected component: Yoast SEO – Advanced SEO with real-time guidance and built-in AI plugin for WordPress
- Affected versions: All versions up to, and including, 27.1.1
- Published: March 22, 2026 at 04:16:24 AM UTC
- Last modified: March 22, 2026 at 04:16:24 AM UTC
- CVSS v3.1 Base Score: 6.4 (MEDIUM)
- CVSS v3.1 Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Authentication / privileges / user interaction: Authenticated attacker with low privileges (Contributor-level or higher); no user interaction required
- Primary impact: Confidentiality: Low; Integrity: Low; Availability: None
- Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e., Cross-Site Scripting)
Technical Details
This vulnerability is a stored Cross-Site Scripting (XSS) issue stemming from insufficient input sanitization and output escaping of the jsonText block attribute. Because the plugin accepts and persists the attribute value without adequate sanitization or escaping on output, an authenticated user with Contributor-level access or higher can craft content that includes executable script code. When another user views the page containing the injected content, the browser will execute the injected script in the context of that page.
The issue is storage-based: malicious script content is saved in post content and executed later whenever the affected page is accessed. The description indicates the root cause is inadequate sanitization and escaping of that block attribute rather than a need for specific REST endpoints or functions to be called.
How This Could Impact Your Website
Consider a small business WordPress site with an owner, an internal editor, and an external contributor who helps produce content. If the external contributor has Contributor-level access, they could insert a script via the jsonText block attribute into a page or post. That script could run in the browsers of other authenticated users (editors, administrators) or site visitors, depending on where the content appears.
Practical consequences may include limited exposure of information accessible in the browser context (for example, visible user data on the page), unauthorized modification of displayed content (integrity impact), or use of the injected script to harvest email addresses shown on pages. These outcomes increase the risk of targeted phishing or social engineering against staff or customers. The CVSS data indicates no direct impact to site availability.
If you’re unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Review and reduce unnecessary user roles, especially Contributor-level accounts.
- Enforce strong passwords and two-factor authentication for editors and administrators.
- Remove unused or unmaintained plugins.
- Monitor site activity and logs for unusual behavior, including unexpected content changes or script injections.
If you’d like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- https://github.com/Yoast/wordpress-seo/pull/23035
- https://plugins.trac.wordpress.org/browser/wordpress-seo/tags/27.0/inc/class-wpseo-utils.php#L915
- https://plugins.trac.wordpress.org/browser/wordpress-seo/tags/27.0/src/generators/schema/howto.php#L125
- https://plugins.trac.wordpress.org/changeset/3475308/wordpress-seo
- https://www.wordfence.com/threat-intel/vulnerabilities/id/fee1fef5-5716-49e0-a04e-d0dae527fcfc?source=cve