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-2026-6173 Overview
CVE-2026-6173 is a Stored Cross-Site Scripting (XSS) vulnerability in the Bold Page Builder plugin for WordPress. The flaw affects all versions up to and including 5.7.2. The vulnerability resides in the background_image parameter of the plugin's bt_bb_section shortcode. Insufficient input sanitization and output escaping on user-supplied attributes allow authenticated users with Contributor-level access or higher to inject arbitrary JavaScript. Injected payloads execute in the browser of any visitor who views the affected page.
Critical Impact
Contributor-level accounts can persist JavaScript payloads that run in visitor and administrator browsers, enabling session theft, forced actions, and content manipulation.
Affected Products
- Bold Page Builder plugin for WordPress, versions ≤ 5.7.2
- WordPress sites permitting Contributor-level (or higher) registration or access
- Content pages rendering the bt_bb_section shortcode
Discovery Timeline
- 2026-09-30 - CVE-2026-6173 published to the National Vulnerability Database
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-6173
Vulnerability Analysis
The vulnerability is a Stored Cross-Site Scripting flaw classified under [CWE-79]. It resides in the bt_bb_section shortcode handler within content_elements/bt_bb_section/bt_bb_section.php. The plugin accepts the background_image attribute from post content and renders it into HTML without adequate escaping. An authenticated attacker with at least Contributor permissions can craft a shortcode that embeds arbitrary JavaScript in place of, or alongside, the image URL value.
Because the payload is stored inside post content, it executes whenever a user, including administrators, previews or views the affected page. This escalates the attack from a low-privilege author account to potential full site takeover through actions performed in an administrator's browser session. The changed scope (S:C) in the CVSS vector reflects impact beyond the vulnerable plugin's security boundary.
Root Cause
The root cause is missing input sanitization on the background_image shortcode attribute combined with missing output escaping when the value is emitted into HTML. WordPress functions such as esc_url() or esc_attr() are not applied consistently to user-controlled shortcode parameters before rendering.
Attack Vector
Exploitation requires an authenticated account with Contributor privileges or above. The attacker creates or edits a post containing a bt_bb_section shortcode with a malicious background_image value that breaks out of the intended HTML attribute context and injects a <script> block or event handler. When the post is viewed, the injected script runs in the visitor's browser under the site's origin. Refer to the Wordfence Vulnerability Report and the WordPress Plugin Change Log for technical details.
Detection Methods for CVE-2026-6173
Indicators of Compromise
- Post or page content containing bt_bb_section shortcodes with background_image attribute values that include <script>, javascript:, or HTML event handler strings such as onerror= or onload=.
- New or edited posts authored by low-privilege Contributor accounts referencing the vulnerable shortcode.
- Unexpected outbound requests from visitor browsers to attacker-controlled domains originating from affected pages.
Detection Strategies
- Query the WordPress wp_posts table for post_content matching the bt_bb_section shortcode combined with suspicious background_image values.
- Review web server access logs for POST requests to wp-admin/post.php or the REST API endpoint /wp-json/wp/v2/posts from Contributor-level accounts.
- Inspect page render output with a headless browser to identify unauthorized inline script execution.
Monitoring Recommendations
- Enable audit logging for post creation and revision activity by non-Editor roles.
- Deploy a Content Security Policy (CSP) with reporting to surface script execution from untrusted origins.
- Alert on new user registrations that immediately publish or submit content containing shortcodes.
How to Mitigate CVE-2026-6173
Immediate Actions Required
- Update the Bold Page Builder plugin to a version newer than 5.7.2 that includes the fix referenced in changeset 3526548.
- Audit existing posts and pages for malicious bt_bb_section shortcode content and remove injected payloads.
- Review and downgrade unnecessary Contributor or higher role assignments.
Patch Information
The vendor fix is committed in WordPress plugin repository changeset 3526548, which updates content_elements/bt_bb_section/bt_bb_section.php to properly sanitize and escape the background_image attribute. Administrators should apply the update through the WordPress plugin dashboard or via WP-CLI. See the WordPress Plugin Change Log for the code changes.
Workarounds
- Temporarily disable the Bold Page Builder plugin on sites that cannot immediately patch.
- Restrict Contributor and Author roles from publishing posts that contain shortcodes until the update is applied.
- Deploy a Web Application Firewall (WAF) rule that blocks HTTP requests containing bt_bb_section shortcodes with <script> or javascript: tokens in the background_image parameter.
# Update the plugin via WP-CLI
wp plugin update bold-page-builder
wp plugin list --name=bold-page-builder --fields=name,version,status
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

