Skip to main content

CVE-2026-6170: Bold Page Builder WordPress Plugin XSS Flaw

CVE-2026-6170 is a stored cross-site scripting vulnerability in the Bold Page Builder WordPress plugin affecting versions up to 5.7.2. Attackers with Contributor access can inject malicious scripts. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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-6170 Overview

CVE-2026-6170 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. It resides in the images parameter of the bt_bb_css_image_grid shortcode, where the plugin fails to sanitize input or escape output on user-supplied attributes. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript into pages. The payload executes in the browser of any visitor who loads the affected page, enabling session theft, account takeover, or redirection to attacker-controlled infrastructure. The vulnerability is tracked under CWE-79.

Critical Impact

Authenticated Contributor accounts can inject persistent JavaScript that executes against site visitors and administrators, enabling session hijacking and privilege escalation paths on affected WordPress sites.

Affected Products

  • Bold Page Builder plugin for WordPress
  • All versions up to and including 5.7.2
  • WordPress sites permitting Contributor-level registrations or above

Discovery Timeline

  • 2026-09-30 - CVE-2026-6170 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-6170

Vulnerability Analysis

The Bold Page Builder plugin exposes a shortcode named bt_bb_css_image_grid that renders image grids from user-supplied attributes. The images parameter accepts data intended to be inserted into rendered HTML output. The plugin does not apply WordPress sanitization primitives such as sanitize_text_field() on input, nor does it apply esc_attr() or esc_html() on output. As a result, attacker-controlled data reaches the DOM verbatim.

Because the injection is stored inside post or page content, the payload persists across sessions. Any authenticated or anonymous visitor rendering the page triggers execution. Administrators viewing the same page in the WordPress dashboard are also exposed, which is the escalation path most useful to attackers.

Root Cause

The root cause is missing input validation and output escaping in the shortcode handler located in content_elements/bt_bb_css_image_grid/bt_bb_css_image_grid.php. Shortcode attributes are concatenated into HTML markup without contextual escaping. The vendor patch introduced sanitization on the images attribute, per the WordPress Plugin Change Log.

Attack Vector

Exploitation requires an authenticated account with Contributor role or higher. The attacker creates or edits a post that embeds the bt_bb_css_image_grid shortcode with a malicious images attribute containing JavaScript payloads or HTML event handlers. When the post is previewed, published, or later approved by an editor, the payload executes in every visiting browser. Detailed exploitation context is available in the Wordfence Vulnerability Report.

// No verified proof-of-concept published.
// See vendor changeset and Wordfence advisory for technical details.

Detection Methods for CVE-2026-6170

Indicators of Compromise

  • Post or page content containing bt_bb_css_image_grid shortcode instances with unusual images attribute values containing angle brackets, javascript: URIs, or on* event handlers.
  • Unexpected outbound requests from browsers viewing content authored by low-privilege Contributor accounts.
  • New administrator accounts or modified user roles following visits by privileged users to attacker-authored pages.

Detection Strategies

  • Query the wp_posts table for post_content matching bt_bb_css_image_grid combined with <script, onerror=, or onload= substrings.
  • Review the WordPress audit log for Contributor-role accounts submitting or updating posts that contain the vulnerable shortcode.
  • Enable a Content Security Policy (CSP) in report-only mode and monitor violation reports for inline script execution originating from published pages.

Monitoring Recommendations

  • Monitor administrator session cookies for reuse from unfamiliar IP addresses following page-preview activity.
  • Alert on creation of new WordPress users with elevated roles outside of change-management windows.
  • Track plugin version inventory across managed WordPress instances to confirm patched builds are deployed.

How to Mitigate CVE-2026-6170

Immediate Actions Required

  • Update the Bold Page Builder plugin to the version released in changeset 3526548 or later.
  • Audit all existing posts and pages for the bt_bb_css_image_grid shortcode and inspect the images attribute for suspicious content.
  • Restrict Contributor-level registrations and review recently added accounts on sites permitting open registration.

Patch Information

The vendor fixed the vulnerability in the commit tracked as changeset 3526548. Site operators should upgrade to any release built from this changeset or later. Refer to the WordPress Plugin Change Log for the source-level fix and to the Wordfence Vulnerability Report for advisory details.

Workarounds

  • Temporarily disable the Bold Page Builder plugin until the patched version is deployed.
  • Downgrade Contributor accounts to Subscriber where publishing rights are not required.
  • Deploy a web application firewall (WAF) rule blocking shortcode attribute values containing <script, on*=, or javascript: patterns.
bash
# Example WP-CLI commands for triage
wp plugin update bold-page-builder
wp post list --post_status=any --s='bt_bb_css_image_grid' --format=table
wp user list --role=contributor --format=table

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.