# Yoast SEO <= 28.9 - Authenticated (Contributor+) Missing Authorization to Restricted Advanced SEO Meta Fields Update

- **ID:** WPSEC-2026-4367
- **Plugin:** Yoast SEO – Advanced SEO with real-time guidance and built-in AI (`wordpress-seo`), https://wordpress.org/plugins/wordpress-seo/
- **Affected versions:** all versions before 29.0
- **Fixed in:** 29.0 (Update to 29.0 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-863
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wordpress-seo
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4367/

## Description

The Yoast SEO plugin for WordPress is vulnerable to unauthorized modification of data via post custom fields in all versions up to, and including, 28.9. The cause is the allow_custom_field_edits() 'user_has_cap' filter, which grants the edit_post_meta and add_post_meta capabilities for every _yoast_wpseo_ meta key to any user who can edit the post and ignores the 'Restrict advanced settings for authors' (disableadvanced_meta) setting. This makes it possible for authenticated attackers, with Contributor-level access and above, to set advanced and schema SEO fields on posts they can edit, such as robots noindex/nofollow directives, the canonical URL, the breadcrumb title and the Schema page and article types. They do this through the XML-RPC custom fields interface, even when the site restricts these fields to users with the wpseo_edit_advanced_metadata capability.

## References

- https://wpsec.com/vuln/WPSEC-2026-4367/
- https://plugins.svn.wordpress.org/wordpress-seo/tags/29.0/
- https://wordpress.org/plugins/wordpress-seo/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4367/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
