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-13907 Overview
CVE-2025-13907 is a Stored Cross-Site Scripting (XSS) vulnerability in the CSS3 Buttons plugin for WordPress. The flaw affects all versions up to and including 0.1. It stems from insufficient input sanitization and output escaping on user-supplied attributes within the plugin's button shortcode. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The payload executes in the browser of any user who views the affected content, enabling session theft, redirection, and administrative action abuse. The vulnerability is classified under [CWE-79].
Critical Impact
Contributor-level users can inject persistent JavaScript that executes against site visitors and administrators, enabling account takeover and content manipulation.
Affected Products
- WordPress CSS3 Buttons plugin, all versions through 0.1
- WordPress sites allowing contributor or higher role registration
- Sites rendering the button shortcode in published content
Discovery Timeline
- 2025-12-06 - CVE-2025-13907 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2025-13907
Vulnerability Analysis
The CSS3 Buttons plugin registers a button shortcode that accepts attributes from post authors. The shortcode handler fails to sanitize these attributes on input and does not escape them on output. When a post containing a crafted shortcode renders, the raw attribute values appear within the generated HTML. This behavior enables injection of script content that executes in the browser of any viewer. Because the payload persists in the post body stored in the database, each page view triggers execution. Contributor accounts, which can author but not publish posts, remain sufficient to seed the payload. Once an editor or administrator reviews or previews the submission, the script runs under the privileges of that session.
Root Cause
The shortcode callback in css3-buttons.php passes user-controlled attributes directly into HTML output without applying WordPress escaping functions such as esc_attr() or esc_html(). The plugin also omits attribute allow-listing through shortcode_atts() constraints on content type.
Attack Vector
An authenticated contributor crafts a post containing the button shortcode with malicious attribute values that break out of the intended HTML attribute context. When any authenticated reviewer or site visitor loads the page, the injected JavaScript executes in their browser session. For technical specifics on the vulnerable code path, see the Wordfence Vulnerability Analysis and the WordPress Plugin Trunk Version.
Detection Methods for CVE-2025-13907
Indicators of Compromise
- Posts or pages containing button shortcode attributes that include characters such as ", <, >, or javascript: sequences
- Unexpected outbound requests from administrator or editor browser sessions to third-party domains after viewing contributor-submitted content
- New administrator accounts or role changes shortly after review of contributor posts
- Database wp_posts rows containing [button ...] entries with embedded script fragments
Detection Strategies
- Query the wp_posts table for shortcode patterns containing attribute values with angle brackets, event handlers (onerror, onload), or javascript: URIs
- Monitor WordPress audit logs for contributor accounts submitting posts containing shortcodes from the CSS3 Buttons plugin
- Deploy a web application firewall rule inspecting POST requests to /wp-admin/post.php for shortcode payloads with HTML control characters
Monitoring Recommendations
- Alert on role changes, password resets, or plugin installations originating from editor or administrator sessions following content review activity
- Review browser Content Security Policy (CSP) violation reports for inline script blocks rendered from post content
- Track plugin inventory and flag the presence of css3-buttons across managed WordPress instances
How to Mitigate CVE-2025-13907
Immediate Actions Required
- Deactivate and remove the CSS3 Buttons plugin until a patched release is available
- Audit all existing posts for the [button] shortcode and review attribute values for injected script content
- Restrict contributor-level registration and require manual approval for new accounts
- Enforce a strict Content Security Policy that blocks inline scripts and unapproved origins
Patch Information
No patched version is listed in the advisory. All versions up to and including 0.1 are vulnerable. Site owners should remove the plugin and select a maintained alternative. Monitor the Wordfence Vulnerability Analysis and the WordPress Plugin Repository for updates.
Workarounds
- Remove or comment out the button shortcode registration in css3-buttons.php if the plugin cannot be uninstalled immediately
- Apply a WAF rule that strips angle brackets, quotes, and event handler attributes from button shortcode parameters submitted through the editor
- Elevate the minimum role required to use shortcodes by filtering the_content and sanitizing output through wp_kses_post() before rendering
- Replace the plugin with a maintained alternative that applies esc_attr() to all shortcode attributes
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

