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
The Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates WordPress plugin suffers from a stored XSS vulnerability (CWE-79) in the Add to Cart block. Specifically, the className, classHook, and blockId attributes are inserted into class and data-id HTML attributes without proper escaping in the render_callback() function. This allows authenticated users with Contributor-level permissions or higher to inject malicious JavaScript code that executes in the context of any user viewing the compromised page. The vulnerability affects all versions up to 6.0.4. The CVSS 3.1 base score is 6.4, indicating medium severity, with network attack vector, low attack complexity, and no user interaction required.
Potential Impact
An attacker with Contributor-level or higher privileges can inject persistent malicious scripts into pages via vulnerable attributes. These scripts execute in the browsers of users who visit 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 of user sessions and data. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or patch links are provided by the vendor at this time. Users should monitor the vendor's advisory channels for updates. Until a patch is available, restrict Contributor-level access to trusted users only and consider disabling or removing the vulnerable Add to Cart block if feasible. Avoid exposing pages with this block to untrusted users. Follow vendor guidance once an official fix is 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.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates WordPress plugin suffers from a stored XSS vulnerability (CWE-79) in the Add to Cart block. Specifically, the className, classHook, and blockId attributes are inserted into class and data-id HTML attributes without proper escaping in the render_callback() function. This allows authenticated users with Contributor-level permissions or higher to inject malicious JavaScript code that executes in the context of any user viewing the compromised page. The vulnerability affects all versions up to 6.0.4. The CVSS 3.1 base score is 6.4, indicating medium severity, with network attack vector, low attack complexity, and no user interaction required.
Potential Impact
An attacker with Contributor-level or higher privileges can inject persistent malicious scripts into pages via vulnerable attributes. These scripts execute in the browsers of users who visit 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 of user sessions and data. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or patch links are provided by the vendor at this time. Users should monitor the vendor's advisory channels for updates. Until a patch is available, restrict Contributor-level access to trusted users only and consider disabling or removing the vulnerable Add to Cart block if feasible. Avoid exposing pages with this block to untrusted users. Follow vendor guidance once an official fix is 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/10/2026, 2:11:04 AM
Last updated: 6/17/2026, 12:56:43 AM
Views: 53
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.