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 Post Slug (post_name) in all versions up to, and including, 28.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires pretty permalinks to be enabled, as the exploit chain depends on get_permalink() embedding the stored percent-encoded post_name in the generated URL.
Published: 2026-07-25
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Yoast SEO plugin for WordPress is vulnerable to stored cross‑site scripting triggered by the post slug (post_name) field. The plugin fails to sanitize or escape user‑provided input before persisting the slug in the database, and when pretty permalinks are enabled the slug is incorporated into the URL via get_permalink. An authenticated attacker with author‑level or higher privileges can embed JavaScript in the slug, causing that code to execute in the browsers of visitors who load the affected page.

Affected Systems

All versions of the Yoast SEO – Advanced SEO with real‑time guidance and built‑in AI plugin up to and including 28.0 are vulnerable. Versions 28.1 and later contain a fix that sanitizes and escapes the post_name field to prevent this attack.

Risk and Exploitability

The CVSS score of 6.4 classifies this vulnerability as moderate severity. The EPSS score of less than 1% suggests that exploitation is currently unlikely, and the vulnerability is not listed in CISA’s KEV catalog. Successful exploitation requires pretty permalinks to be enabled and the attacker to possess author‑level or higher access. Once the malicious slug is stored, the embedded script will run in any visitor’s browser when the compromised page is viewed, potentially hijacking user sessions or defacing the site.

Generated by OpenCVE AI on August 3, 2026 at 19:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Yoast SEO plugin to a release newer than 28.0 to apply the fixed input sanitization and output escaping.
  • Remove or sanitize any existing post slugs that contain suspicious characters or script payloads to eliminate stored data.
  • Disable pretty permalinks for the affected post type if they are not required, or restrict access to get_permalink to mitigate the attack vector.

Generated by OpenCVE AI on August 3, 2026 at 19:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 25 Jul 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Yoast
Yoast yoast Seo – Advanced Seo With Real-time Guidance And Built-in Ai
Vendors & Products Wordpress
Wordpress wordpress
Yoast
Yoast yoast Seo – Advanced Seo With Real-time Guidance And Built-in Ai

Sat, 25 Jul 2026 07:15:00 +0000

Type Values Removed Values Added
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 Post Slug (post_name) in all versions up to, and including, 28.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires pretty permalinks to be enabled, as the exploit chain depends on get_permalink() embedding the stored percent-encoded post_name in the generated URL.
Title Yoast SEO <= 28.0 - Authenticated (Author+) Stored Cross-Site Scripting via Post Slug (post_name)
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Wordpress Wordpress
Yoast Yoast Seo – Advanced Seo With Real-time Guidance And Built-in Ai
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-27T14:36:44.294Z

Reserved: 2026-07-10T16:20:53.214Z

Link: CVE-2026-15425

cve-icon Vulnrichment

Updated: 2026-07-27T14:36:41.084Z

cve-icon NVD

Status : Deferred

Published: 2026-07-25T07:17:09.897

Modified: 2026-07-27T20:25:13.817

Link: CVE-2026-15425

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:45:07Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')