CVE-2026-6740 Overview
CVE-2026-6740 is a Stored Cross-Site Scripting (XSS) vulnerability in the Nexter Blocks – Gutenberg Blocks, Page Builder & AI Website Builder plugin for WordPress. The flaw affects all versions up to and including 4.7.4. It stems from insufficient input sanitization and output escaping on the commentIcon parameter. Authenticated attackers with contributor-level access or above can inject arbitrary web scripts into pages. The scripts execute in the browser of any user who accesses the affected page. The issue is categorized under [CWE-79] Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated contributors can persist JavaScript that executes against site visitors and administrators, enabling session theft, forced actions, and privilege escalation vectors.
Affected Products
- Nexter Blocks – Gutenberg Blocks, Page Builder & AI Website Builder plugin for WordPress
- All versions up to and including 4.7.4
- WordPress sites permitting contributor-level user registration
Discovery Timeline
- 2026-07-08 - CVE-2026-6740 published to NVD
- 2026-07-08 - Last updated in NVD database
Technical Details for CVE-2026-6740
Vulnerability Analysis
The vulnerability resides in how the Nexter Blocks plugin handles the commentIcon parameter when rendering block output. User-supplied content passed through this parameter is stored in post metadata and later reflected in rendered pages without proper sanitization or output escaping. Because the payload is persisted, every visitor to the affected page triggers execution of the injected script in their browser context.
Exploitation requires authentication at the contributor role or higher. WordPress installations that allow user registration or delegate content authoring across multiple users expand the pool of potential attackers. The scope change indicated by the CVSS vector reflects that scripts executed in a victim browser can affect resources outside the vulnerable component, including administrator sessions.
Root Cause
The root cause is missing input validation on write and missing output escaping on render for the commentIcon field within the plugin's post meta block located at classes/blocks/tp-post-meta/index.php. WordPress provides escaping helpers such as esc_attr(), esc_html(), and wp_kses() for exactly this class of input. The vulnerable code path bypasses these controls, allowing raw HTML and JavaScript to reach the DOM.
Attack Vector
An authenticated contributor crafts a Nexter Blocks post meta block and injects a malicious payload into the commentIcon parameter. The payload is saved as post content and rendered when any user, including administrators, views the resulting page. The injected script executes with the origin of the WordPress site. Attackers can steal authentication cookies, submit administrative forms via forged requests, redirect users, or plant additional persistence.
No verified proof-of-concept code is publicly available. Technical details of the fix are documented in the WordPress Plugin Changeset and the Wordfence Vulnerability Report.
Detection Methods for CVE-2026-6740
Indicators of Compromise
- Post meta values containing <script> tags, javascript: URIs, or event handlers such as onerror= and onload= in the commentIcon field.
- Unexpected outbound requests from visitor browsers to attacker-controlled domains after loading pages built with Nexter Blocks.
- Contributor-level accounts creating or editing posts that include the tp-post-meta block with unusual icon values.
Detection Strategies
- Query the wp_postmeta table for Nexter Blocks entries and flag values containing HTML tags or JavaScript event attributes.
- Review WordPress audit logs for content edits from contributor and author accounts that touch post meta blocks.
- Scan rendered pages with a headless browser to detect script execution from unexpected origins.
Monitoring Recommendations
- Alert on new or modified posts authored by contributor roles that contain HTML entities inside plugin block attributes.
- Monitor administrator sessions for anomalous actions immediately following page previews of contributor-submitted content.
- Track plugin version state across WordPress fleets and alert when Nexter Blocks remains at 4.7.4 or earlier.
How to Mitigate CVE-2026-6740
Immediate Actions Required
- Update the Nexter Blocks plugin to a version later than 4.7.4 as published by the vendor.
- Audit all contributor, author, and editor accounts and remove or downgrade unused users.
- Review recent posts and pages containing Nexter Blocks post meta blocks for injected payloads and remove them.
Patch Information
The vendor addressed the flaw in the plugin source tree. The remediation is documented in the WordPress Plugin Changeset 3512686, which applies proper sanitization and output escaping to the commentIcon parameter. Site administrators should upgrade through the WordPress plugin manager or via WP-CLI.
Workarounds
- Restrict contributor-level account creation and disable open user registration until the patch is applied.
- Deploy a Web Application Firewall rule that blocks HTML tags and JavaScript event handlers in Nexter Blocks request parameters.
- Temporarily deactivate the Nexter Blocks plugin on sites where an immediate update is not feasible.
# Configuration example
wp plugin update nexter-blocks
wp user list --role=contributor --format=table
wp option update users_can_register 0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

