GenerateBlocks dynamic tags let Contributors inject event handlers
GenerateBlocks through 2.3.0 resolves dynamic post-meta tags inside non-URL attributes such as title, aria-label, alt and data attributes without adequate escaping. A Contributor can place a dynamic tag in an element block and set its post-meta value to close the attribute and inject an event handler, executing JavaScript for page viewers.
- Component
- GenerateBlocks
- Plugin slug
generateblocks- Affected
- <= 2.3.0
- Safe version
> 2.3.0- Published
- Aug 01, 2026
This CVE was published Aug 01, 2026 and is one of 9 known issues for this plugin.
Update, patch or deactivate.
Update to a corrected release after 2.3.0. Review dynamic tags and referenced post meta for quote-breaking event handlers, remove payloads, and invalidate privileged sessions where warranted.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
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.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary and upstream sources
- NVD record for CVE-2026-13458
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- Wordfence advisory wordfence.com