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-11802 Overview
CVE-2025-11802 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Bulma Shortcodes plugin for WordPress. The flaw exists in all versions up to and including 1.0. It stems from insufficient input sanitization and output escaping on the type attribute of the bulma-notification shortcode. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who views the affected page.
Critical Impact
Authenticated contributors can plant persistent JavaScript payloads that execute against site administrators and visitors, enabling session theft, account takeover, and further site compromise.
Affected Products
- Bulma Shortcodes plugin for WordPress (all versions ≤ 1.0)
- WordPress sites allowing contributor-level or higher accounts
- Any page or post rendering the bulma-notification shortcode
Discovery Timeline
- 2025-11-21 - CVE-2025-11802 published to NVD
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2025-11802
Vulnerability Analysis
The Bulma Shortcodes plugin registers the bulma-notification shortcode to render Bulma CSS notification components. The handler reads the type attribute supplied by the user and emits it directly into the generated HTML without sanitization or escaping. An authenticated contributor can supply shortcode attributes that break out of the intended HTML context and inject arbitrary script content. Because the shortcode is stored as post content, the payload persists in the database and runs each time the page is rendered. Any logged-in administrator who previews or visits the post executes the attacker-controlled JavaScript under the WordPress site origin.
Root Cause
The root cause is missing input validation and missing output encoding in the shortcode rendering function located in inc/components.php. The type attribute is concatenated directly into the HTML output. WordPress best practice requires esc_attr() for HTML attribute contexts and sanitize_html_class() when the value should be restricted to CSS class tokens. Neither function is applied before output.
Attack Vector
Exploitation requires an authenticated account with the WordPress Contributor role or higher. The attacker inserts the bulma-notification shortcode into a draft post with a crafted type attribute containing an attribute-breaking payload and inline event handlers or script tags. When an editor, administrator, or site visitor loads the page, the browser parses and executes the injected script in the context of the WordPress site. See the WordPress Plugin Code Review and the Wordfence Vulnerability Report for technical details.
Detection Methods for CVE-2025-11802
Indicators of Compromise
- Post or page content containing bulma-notification shortcodes with unusual type attribute values that include quotes, angle brackets, or JavaScript event handlers such as onerror, onload, or onclick.
- Rendered HTML containing inline <script> tags or event handlers inside Bulma notification elements.
- Unexpected administrator session activity or new administrator accounts created shortly after a contributor submits content.
Detection Strategies
- Query the wp_posts table for shortcode attribute values containing suspicious characters: SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%bulma-notification%' AND post_content REGEXP '(<script|onerror|onload|javascript:)';
- Review audit logs for post creations and edits performed by contributor-level accounts referencing the bulma-notification shortcode.
- Monitor browser Content Security Policy (CSP) violation reports for inline script execution originating from WordPress-rendered pages.
Monitoring Recommendations
- Alert on new user registrations assigned the Contributor role, particularly on sites that normally restrict publishing.
- Monitor outbound requests from administrator browsers to unfamiliar domains, which can indicate successful XSS payload execution.
- Track plugin version inventory across managed WordPress sites and flag any installation of Bulma Shortcodes ≤ 1.0.
How to Mitigate CVE-2025-11802
Immediate Actions Required
- Deactivate and remove the Bulma Shortcodes plugin until a patched version becomes available.
- Audit all posts and pages for the bulma-notification shortcode and remove or sanitize suspicious type attribute values.
- Review contributor-level and above accounts, remove unused accounts, and rotate credentials for any accounts suspected of misuse.
Patch Information
At the time of publication, no vendor patch is listed in the NVD record. Site owners should monitor the WordPress plugin repository and the Wordfence Vulnerability Report for an updated release. Any fix must apply esc_attr() or sanitize_html_class() to the type shortcode attribute before rendering.
Workarounds
- Restrict the Contributor role or disable it entirely on sites that do not require guest authoring.
- Deploy a web application firewall (WAF) rule that blocks shortcode submissions containing HTML control characters inside bulma-notification attributes.
- Implement a strict Content Security Policy that disallows inline scripts to reduce the impact of stored XSS payloads.
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate bulma-shortcodes
wp plugin delete bulma-shortcodes
# Identify posts containing the vulnerable shortcode
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%bulma-notification%';"
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

