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-11882 Overview
The Simple Donate plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in its simpledonate shortcode. The flaw affects all versions up to and including 1.0. It stems from insufficient input sanitization and output escaping on user-supplied shortcode attributes [CWE-79]. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected script executes in the browser of any user who views the affected page, enabling session theft, redirection, or privileged actions in the site administrator's context.
Critical Impact
Contributor-level accounts can persistently inject JavaScript that executes against site visitors and administrators, enabling account takeover and administrative privilege escalation through browser-side actions.
Affected Products
- Simple Donate plugin for WordPress, versions less than or equal to 1.0
- WordPress sites permitting contributor-level registration
- Any WordPress installation with the simpledonate shortcode enabled
Discovery Timeline
- 2025-11-11 - CVE-2025-11882 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-11882
Vulnerability Analysis
The vulnerability resides in the shortcode handler for simpledonate within the plugin's index.php. WordPress shortcodes accept attributes that plugins must sanitize before rendering. The Simple Donate plugin passes attribute values directly into HTML output without applying escaping functions such as esc_attr() or esc_html(). This produces a Stored XSS condition because shortcode content is saved as part of post or page data and rendered on every subsequent view.
Exploitation requires authenticated access at contributor level or higher. Contributors can create draft posts containing the vulnerable shortcode with malicious attribute values. When an editor or administrator previews the draft, or the post is published and visited, the injected script executes in the victim's browser session. The scope change (S:C) indicates the injected payload can affect resources beyond the vulnerable component.
Root Cause
The root cause is missing input sanitization and output escaping on shortcode attributes. WordPress provides sanitize_text_field() for input handling and context-specific escaping functions for output. The vulnerable shortcode handler consumes attribute values and echoes them into the HTML response without invoking either.
Attack Vector
An authenticated attacker with contributor permissions inserts the simpledonate shortcode into a post, supplying an attribute value containing JavaScript. The payload persists in the WordPress database as post content. When any authenticated or unauthenticated user renders the page, the browser parses and executes the script under the site's origin, allowing cookie theft, forced administrative actions, or delivery of secondary payloads.
See the WordPress Plugin Code Reference and Wordfence Vulnerability Report for technical details on the vulnerable code path.
Detection Methods for CVE-2025-11882
Indicators of Compromise
- Posts or pages containing simpledonate shortcodes with attribute values that include <script>, javascript:, onerror=, or onload= handlers
- Unexpected outbound requests from browsers viewing WordPress content to attacker-controlled domains
- New administrator accounts or role changes created shortly after a contributor account submitted content containing the shortcode
Detection Strategies
- Query the wp_posts table for post_content values containing [simpledonate combined with suspicious characters such as <, >, or javascript:
- Review WordPress audit logs for contributor accounts submitting posts that include the vulnerable shortcode
- Inspect rendered HTML from published pages for inline event handlers or script tags originating from shortcode attribute positions
Monitoring Recommendations
- Enable a web application firewall with rules targeting stored XSS payloads on WordPress wp-admin/post.php and wp-admin/post-new.php endpoints
- Alert on contributor role activity that generates content containing shortcodes with HTML control characters
- Monitor browser telemetry for script execution originating from /wp-content/ rendered pages that references unfamiliar external domains
How to Mitigate CVE-2025-11882
Immediate Actions Required
- Deactivate and remove the Simple Donate plugin until a patched version is confirmed available
- Audit all posts and pages for existing simpledonate shortcode usage and remove instances containing untrusted attribute content
- Review contributor-level user accounts and revoke access for accounts that are not required
Patch Information
No vendor patch is referenced in the CVE record at the time of publication. Consult the Wordfence Vulnerability Report for the current patch status and monitor the plugin's WordPress.org listing for updates beyond version 1.0.
Workarounds
- Remove the plugin entirely if donation functionality is not required
- Restrict content submission privileges by disabling contributor registration and requiring editor-level review for all published content
- Deploy a WordPress-aware WAF ruleset that blocks shortcode attributes containing HTML tags or JavaScript URIs
# Disable the Simple Donate plugin via WP-CLI
wp plugin deactivate simple-donate
wp plugin delete simple-donate
# Identify posts containing the vulnerable shortcode
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%[simpledonate%';"
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

