Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-4611 Overview
CVE-2025-4611 is a stored Cross-Site Scripting (XSS) vulnerability in the Slim SEO – Fast & Automated WordPress SEO Plugin for WordPress. The flaw affects all plugin versions up to and including 4.5.3. It resides in the slim_seo_breadcrumbs shortcode, which fails to sanitize user-supplied attributes and does not escape output. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript that executes when visitors load the affected pages. The weakness is classified as [CWE-79] Improper Neutralization of Input During Web Page Generation.
Critical Impact
Contributor-level accounts can persistently inject scripts that execute in the browser of any visitor rendering the affected page, enabling session theft, redirection, and administrative action abuse.
Affected Products
- Slim SEO – Fast & Automated WordPress SEO Plugin for WordPress
- All versions up to and including 4.5.3
- Sites allowing contributor-level or higher registration are most exposed
Discovery Timeline
- 2025-05-21 - CVE-2025-4611 published to the National Vulnerability Database
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2025-4611
Vulnerability Analysis
The Slim SEO plugin registers a slim_seo_breadcrumbs shortcode that renders a navigational breadcrumb trail. The handler in src/Breadcrumbs.php builds HTML by passing user-controlled attributes directly into sprintf() calls without applying WordPress escaping helpers. Specifically, the separator attribute and the breadcrumb item fields (url, class, text) are concatenated into anchor tags and span elements verbatim.
An authenticated contributor can embed the shortcode in a post or page with a malicious separator value containing JavaScript. Once an editor or administrator previews the submitted content, or a visitor loads the published page, the injected payload executes in their browser context. The impact includes session hijacking, forced administrative actions through authenticated requests, and redirection to attacker-controlled sites.
Root Cause
The root cause is missing output escaping on attributes consumed by the breadcrumb renderer. The pre-patch code called sprintf() with raw $item['url'], $item['text'], $this->current, and $this->args['separator'] values. WordPress provides esc_url(), esc_attr(), and esc_html() to neutralize these contexts, but none were applied in versions through 4.5.3.
Attack Vector
Exploitation requires an authenticated session with contributor privileges or higher. The attacker submits content containing the slim_seo_breadcrumbs shortcode with crafted attributes. The payload persists in the database and executes whenever the page is rendered.
return '';
}
- $output = sprintf( '<nav class="breadcrumbs" aria-label="%s">', __( 'Breadcrumbs', 'slim-seo' ) );
+ $output = sprintf( '<nav class="breadcrumbs" aria-label="%s">', esc_attr__( 'Breadcrumbs', 'slim-seo' ) );
// Links.
$items = [];
$template = '<a href="%s" class="breadcrumb%s">%s</a>';
foreach ( $links as $i => $item ) {
$class = 0 === $i ? ' breadcrumb--first' : '';
- $items[] = sprintf( $template, $item['url'], $class, $item['text'], $i + 1 );
+ $items[] = sprintf( $template, esc_url( $item['url'] ), esc_attr( $class ), esc_html( $item['text'] ), $i + 1 );
}
// Current page.
if ( 'true' === $this->args['display_current'] ) {
- $items[] = sprintf( '<span class="breadcrumb breadcrumb--last" aria-current="page">%s</span>', $this->current );
+ $items[] = sprintf( '<span class="breadcrumb breadcrumb--last" aria-current="page">%s</span>', esc_html( $this->current ) );
}
- $output .= implode( " <span class='breadcrumbs__separator' aria-hidden='true'>{$this->args['separator']}</span> ", $items );
+ $sep = esc_html( $this->args['separator'] );
+ $output .= implode( " <span class='breadcrumbs__separator' aria-hidden='true'>{$sep}</span> ", $items );
$output .= '</nav>';
return $output;
Source: GitHub commit b475dce. The patch wraps every user-influenced value with esc_url(), esc_attr(), or esc_html() before emitting HTML.
Detection Methods for CVE-2025-4611
Indicators of Compromise
- Posts or pages containing [slim_seo_breadcrumbs] shortcodes with separator attributes that include <script>, onerror=, or javascript: strings
- Unexpected outbound requests from visitor browsers to attacker-controlled domains following page views
- New or modified WordPress administrator accounts created shortly after content submissions by contributor accounts
- Database rows in wp_posts containing encoded JavaScript payloads near breadcrumb shortcode markup
Detection Strategies
- Query the wp_posts table for occurrences of slim_seo_breadcrumbs and inspect attribute values for HTML or script content
- Monitor WordPress audit logs for contributor-level accounts publishing or editing posts that embed the breadcrumb shortcode
- Deploy a web application firewall rule that inspects shortcode attribute payloads submitted through the REST API and admin-ajax.php
Monitoring Recommendations
- Track Slim SEO plugin version across all WordPress deployments and alert when versions 4.5.3 or earlier appear
- Log and review all contributor and author account activity, prioritizing content containing shortcodes
- Enable Content Security Policy (CSP) reporting to surface inline script execution originating from stored content
How to Mitigate CVE-2025-4611
Immediate Actions Required
- Update the Slim SEO plugin to a version newer than 4.5.3 that includes the escaping patch from changeset 3296099
- Audit all existing posts and pages for slim_seo_breadcrumbs shortcode usage and remove suspicious attribute values
- Review contributor and author accounts, rotating credentials for any account suspected of injecting payloads
Patch Information
The vendor released a fix in WordPress changeset 3296099 and committed the change in GitHub commit b475dce. Additional detail is available in the Wordfence vulnerability report and the Slim SEO developer page.
Workarounds
- Restrict contributor-level registration and require editorial review before publishing content from untrusted authors
- Temporarily disable the slim_seo_breadcrumbs shortcode by removing its registration until the plugin is patched
- Apply a Content Security Policy that blocks inline script execution to reduce the impact of injected payloads
# Update Slim SEO via WP-CLI to the patched release
wp plugin update slim-seo
# Verify the installed version is above 4.5.3
wp plugin get slim-seo --field=version
# Search content for the vulnerable shortcode usage
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%slim_seo_breadcrumbs%';"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

