CVE-2026-4658: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns
The Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the className, classHook, and blockId attributes in the Add to Cart block (essential-blocks/add-to-cart) in all versions up to, and including, 6.0.4. This is due to insufficient output escaping in the render_callback() function where these attributes are placed into class and data-id HTML attributes using raw sprintf() and implode() without esc_attr() escaping. While the outer wrapper div uses get_block_wrapper_attributes() which properly escapes, the inner divs do not. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
CVE-2026-4658 is a stored cross-site scripting vulnerability in the WordPress plugin 'Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns' affecting all versions up to 6.0.4. The vulnerability occurs because the render_callback() function inserts the className, classHook, and blockId attributes into inner div elements using raw sprintf() and implode() without proper escaping (esc_attr()). Although the outer wrapper div is properly escaped, the inner divs are not, enabling authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code that executes when the page is viewed.
Potential Impact
An attacker with Contributor-level or higher privileges can inject malicious scripts into pages via vulnerable attributes in the Add to Cart block. These scripts execute in the context of users viewing the infected pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability does not affect availability but impacts confidentiality and integrity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation guidance has been provided by the vendor. Until a patch is available, restrict Contributor-level access to trusted users only and consider removing or disabling the vulnerable Add to Cart block if feasible. Monitor the vendor's advisory channels for updates and apply official patches once released.
CVE-2026-4658: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns
Description
The Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the className, classHook, and blockId attributes in the Add to Cart block (essential-blocks/add-to-cart) in all versions up to, and including, 6.0.4. This is due to insufficient output escaping in the render_callback() function where these attributes are placed into class and data-id HTML attributes using raw sprintf() and implode() without esc_attr() escaping. While the outer wrapper div uses get_block_wrapper_attributes() which properly escapes, the inner divs do not. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-4658 is a stored cross-site scripting vulnerability in the WordPress plugin 'Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns' affecting all versions up to 6.0.4. The vulnerability occurs because the render_callback() function inserts the className, classHook, and blockId attributes into inner div elements using raw sprintf() and implode() without proper escaping (esc_attr()). Although the outer wrapper div is properly escaped, the inner divs are not, enabling authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code that executes when the page is viewed.
Potential Impact
An attacker with Contributor-level or higher privileges can inject malicious scripts into pages via vulnerable attributes in the Add to Cart block. These scripts execute in the context of users viewing the infected pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability does not affect availability but impacts confidentiality and integrity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation guidance has been provided by the vendor. Until a patch is available, restrict Contributor-level access to trusted users only and consider removing or disabling the vulnerable Add to Cart block if feasible. Monitor the vendor's advisory channels for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-23T15:37:56.964Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f589f3cbff5d861095a050
Added to database: 5/2/2026, 5:21:55 AM
Last enriched: 5/2/2026, 5:36:50 AM
Last updated: 5/3/2026, 6:15:17 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.