Etavrian
keyboard_arrow_right Created with Sketch.
News
keyboard_arrow_right Created with Sketch.

WPBakery XSS lets contributors inject scripts - what the 8.7 update fixes

Reviewed:
Andrii Daniv
1
min read
Oct 15, 2025
Minimalist security illustration custom JS code panel shield funnel blocking hidden script injections toggle report

Wordfence has discovered and disclosed a stored cross-site scripting vulnerability in the WPBakery Page Builder plugin for WordPress. The issue affects versions up to 8.6.1 and requires contributor-level access to exploit. A fix is available in version 8.7.

WPBakery WordPress Vulnerability Lets Attackers Inject Malicious Code
Stored XSS in WPBakery's Custom JS module is fixed in version 8.7.

WPBakery WordPress vulnerability

The flaw stems from insufficient input sanitization and output escaping in the plugin's Custom JS module. Authenticated users with contributor privileges or higher can inject arbitrary JavaScript into affected pages, which executes when a user views the compromised page.

  • Plugin: WPBakery Page Builder for WordPress (slug js_composer)
  • Vulnerability type: Stored cross-site scripting via Custom JS module
  • Affected versions: Up to and including 8.6.1
  • Fixed version: 8.7
  • Required access: Authenticated contributor or higher
  • Source: Wordfence advisory

Background context

WPBakery Page Builder is a drag-and-drop page builder frequently bundled with premium WordPress themes under developer licenses. Stored cross-site scripting vulnerabilities allow persistent script execution in site visitors' browsers when they load a page containing the injected payload. The identified vulnerable component is the Custom JS module.

Mitigation

  • Update WPBakery Page Builder to version 8.7 as soon as possible.
  • Review pages and any use of the Custom JS module for unexpected or unauthorized code.
  • Limit contributor permissions where possible and monitor recent changes until the update is applied.

Source

Wordfence advisory - WPBakery Page Builder 8.6.1 stored cross-site scripting via Custom JS module

Quickly summarize and get insighs with: 
Author
Etavrian AI
Etavrian AI is developed by Andrii Daniv to produce and optimize content for etavrian.com website.
Reviewed
Andrew Daniv, Andrii Daniv
Andrii Daniv
Andrii Daniv is the founder and owner of Etavrian, a performance-driven agency specializing in PPC and SEO services for B2B and e‑commerce businesses.
Quickly summarize and get insighs with: 
Table of contents