Skip to main content
Vulnerability Database/CVE-2025-11160

CVE-2025-11160: WPBakery Page Builder XSS Vulnerability

CVE-2025-11160 is a stored cross-site scripting flaw in WPBakery Page Builder that lets authenticated attackers inject malicious scripts via the Custom JS module. This article covers technical details, affected versions, and mitigation.

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-2025-11160 Overview

CVE-2025-11160 is a stored Cross-Site Scripting (XSS) vulnerability in the WPBakery Page Builder plugin for WordPress. The flaw affects all versions up to and including 8.6.1. It resides in the Custom JS module, which fails to sanitize user-supplied JavaScript before storing and rendering it. Authenticated users with contributor-level access or higher can inject arbitrary scripts into pages. The injected code executes in the browser of any visitor who loads the affected page. This vulnerability maps to CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page.

Critical Impact

Contributor-level attackers can persist arbitrary JavaScript into published pages, enabling session theft, credential harvesting, and administrative account takeover when higher-privileged users visit the page.

Affected Products

  • WPBakery Page Builder for WordPress, all versions through 8.6.1
  • WordPress sites exposing the WPBakery editor to contributor-level users
  • Post types configured with WPBakery editor access

Discovery Timeline

  • 2025-10-15 - CVE-2025-11160 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-11160

Vulnerability Analysis

The WPBakery Page Builder plugin ships a Custom JS module that lets editors attach JavaScript to pages built with the plugin. The module accepts user-supplied JavaScript and stores it in the post record without proper sanitization. When the page is rendered, the stored payload is emitted into the page output without adequate escaping. Any visitor loading the affected page executes the script in their browser session.

Because the attacker only needs contributor-level privileges, this vulnerability lowers the bar for content-based compromise on multi-author WordPress sites. Contributors typically cannot publish pages directly, but scripts can execute during editorial preview or once an editor publishes the submitted content. The stored nature of the payload means it persists across sessions and affects every subsequent viewer.

Root Cause

The root cause is insufficient input sanitization and output escaping in the Custom JS module. The plugin trusts the JavaScript payload supplied through the editor and does not neutralize script-related tags or restrict the content to a safe subset. WordPress role-based capability checks are the only barrier, and those permit contributors to reach the vulnerable code path when the WPBakery editor is enabled for their post types.

Attack Vector

An authenticated attacker with contributor-level access authors or edits a post that uses WPBakery Page Builder. The attacker inserts a malicious payload into the Custom JS module. When a higher-privileged user previews or publishes the content, or when a visitor loads the published page, the injected JavaScript executes with the origin of the WordPress site. Exploitation requires user interaction, since the script fires when a victim loads the page.

Typical post-exploitation actions include stealing authentication cookies, forging administrative requests, injecting SEO spam, or redirecting visitors to attacker-controlled infrastructure. No verified public proof-of-concept is available at time of writing. See the Wordfence Vulnerability Report for additional technical context.

Detection Methods for CVE-2025-11160

Indicators of Compromise

  • Unexpected <script> blocks or inline event handlers embedded in WPBakery-authored posts within the wp_posts table
  • Outbound requests from site visitors to unfamiliar domains sourced from pages built with WPBakery
  • New or modified posts authored by contributor-level accounts that contain Custom JS module entries
  • WordPress admin sessions exhibiting unauthorized privilege changes or new administrator accounts following contributor activity

Detection Strategies

  • Query the wp_posts table for post_content entries containing WPBakery Custom JS shortcodes and review each payload
  • Audit WPBakery revisions and post meta for JavaScript patterns such as document.cookie, fetch(, XMLHttpRequest, or external script src attributes
  • Correlate contributor account activity with subsequent editor or administrator page views to identify potential trigger points

Monitoring Recommendations

  • Log and alert on all changes to posts authored or edited by contributor-level accounts
  • Monitor Content Security Policy (CSP) violation reports for inline script executions on WPBakery pages
  • Track WordPress role and capability changes, especially new administrator accounts created shortly after contributor edits

How to Mitigate CVE-2025-11160

Immediate Actions Required

  • Update WPBakery Page Builder to a version later than 8.6.1 once the vendor publishes a fix; consult the WPBakery Release Notes
  • Audit and remove contributor-level access from users who do not require content authoring privileges
  • Review all existing WPBakery-authored pages for unauthorized Custom JS module entries and remove suspicious payloads
  • Rotate credentials and session tokens for any administrator or editor account that previewed suspicious contributor content

Patch Information

WPBakery has not published a fixed version identifier in the NVD record at the time of publication. Monitor the WPBakery Release Notes and the Wordfence Vulnerability Report for the fixed release. Apply the update across all WordPress instances using WPBakery Page Builder once available.

Workarounds

  • Disable the WPBakery editor for post types accessible to contributor-level users
  • Restrict the unfiltered_html capability and avoid granting elevated capabilities to contributor roles
  • Deploy a strict Content Security Policy that blocks inline scripts on published pages to reduce impact of stored XSS
  • Place a web application firewall (WAF) in front of WordPress and enable rules that inspect WPBakery editor traffic for script payloads
bash
# Content Security Policy example header to reduce stored XSS impact
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"

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.