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-96256 Overview
CVE-2026-96256 is a Stored Cross-Site Scripting (XSS) vulnerability in the Essential Blocks – Page Builder for Gutenberg Blocks & Patterns plugin for WordPress. The flaw affects all versions up to and including 6.4.5. It resides in the Google Map block's marker attribute, where marker title and content values receive insufficient input sanitization and output escaping. Authenticated attackers holding Contributor-level privileges or higher can inject arbitrary JavaScript that executes in the browser of any visitor viewing the affected page. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated contributors can store malicious JavaScript inside Google Map markers that executes against every visitor loading the page, enabling session theft, administrator account takeover, and content defacement.
Affected Products
- Essential Blocks – Page Builder for Gutenberg Blocks & Patterns plugin for WordPress
- All plugin versions up to and including 6.4.5
- Fixed in version 6.4.6 via changeset 3715353
Discovery Timeline
- 2026-10-01 - CVE-2026-96256 published to the National Vulnerability Database
- 2026-10-03 - CVE record last modified in NVD
Technical Details for CVE-2026-96256
Vulnerability Analysis
The vulnerability affects the Google Map block shipped with the Essential Blocks plugin. Editors configure map markers through the block editor, supplying a title and content field for each marker's InfoWindow popup. The plugin stores the marker set as JSON inside the block attributes and persists it with the post content.
At render time, the frontend script (assets/blocks/google-map/frontend.js) decodes the JSON payload and concatenates marker title and content values directly into the HTML string passed to the Google Maps InfoWindow constructor. Because the plugin applies no HTML entity encoding or allowlist filtering on these values during output, any markup embedded in the stored marker fields is parsed as live HTML in the visitor's browser.
Contributors in WordPress can create but not publish posts. However, the stored payload persists through the editorial workflow. When an editor or administrator previews or publishes the submitted content, the injected script executes in a privileged session, enabling account takeover or persistent backdoor installation.
Root Cause
The root cause is a missing output escaping step in the InfoWindow content builder. The server-side handler in includes/Blocks/GoogleMap.php and the save-side logic in src/blocks/google-map/src/save.js pass marker data through without sanitizing title or content fields against an HTML allowlist such as wp_kses_post. The decoded JSON values flow directly into DOM-level HTML construction on the frontend.
Attack Vector
An authenticated attacker with Contributor privileges adds a Google Map block to a draft post and crafts a marker whose title or content attribute contains a script payload such as an event handler on an inline element. The payload is serialized to JSON in the block attributes. When any user visits a page containing that block, the frontend script decodes the JSON and injects the raw payload into the DOM, triggering script execution. Scope is Changed (S:C in the CVSS vector), reflecting the ability to affect users beyond the attacker's own security context.
No verified public exploit code is available. Technical details are documented in the Wordfence Vulnerability Report and the WordPress Changeset Comparison #3715353.
Detection Methods for CVE-2026-96256
Indicators of Compromise
- Post or page content containing Essential Blocks Google Map blocks with marker title or content attributes that include <script>, onerror=, onload=, or javascript: strings.
- Unexpected outbound requests from visitor browsers to attacker-controlled domains referenced from pages hosting the Google Map block.
- New administrator accounts, modified user roles, or installed plugins following edits by Contributor-level users.
Detection Strategies
- Query the wp_posts table for serialized Essential Blocks Google Map block markup and inspect the JSON marker attribute for HTML tags or event handler attributes.
- Deploy a web application firewall rule to inspect saved post content for Essential Blocks block signatures combined with script-like substrings in marker fields.
- Review WordPress audit logs for post edits by Contributor and Author roles that add or modify Google Map blocks.
Monitoring Recommendations
- Monitor the WordPress plugin inventory for Essential Blocks versions at or below 6.4.5.
- Enable Content Security Policy (CSP) reporting to surface inline script execution originating from WordPress-rendered pages.
- Alert on privilege changes and new administrator account creation that follow activity from low-privilege accounts.
How to Mitigate CVE-2026-96256
Immediate Actions Required
- Upgrade the Essential Blocks plugin to version 6.4.6 or later on every WordPress site in the environment.
- Audit existing posts and pages for Google Map blocks and remove any marker titles or content containing HTML tags or event handlers.
- Review Contributor, Author, and Editor accounts and remove inactive or unverified users who could abuse the vulnerability.
Patch Information
The vendor addressed the vulnerability in Essential Blocks version 6.4.6. The fix is implemented in WordPress Changeset #3715353, which updates the frontend InfoWindow builder to escape marker title and content values before injecting them into the DOM. Compare pre- and post-patch behavior through the WordPress Changeset Comparison #3715353.
Workarounds
- If immediate patching is not possible, deactivate the Essential Blocks plugin or disable the Google Map block via register_block_type filtering.
- Restrict post-editing capabilities so that only trusted Editor and Administrator roles can insert or modify Essential Blocks blocks.
- Deploy a Content Security Policy that disallows inline script execution on pages rendering untrusted block content.
# Update Essential Blocks to the patched release via WP-CLI
wp plugin update essential-blocks --version=6.4.6
# Verify the installed version across a multisite network
wp plugin get essential-blocks --field=version --allow-root
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

