CVE-2025-12512

GenerateBlocks <= 2.1.2 - Authenticated (Contributor+) Information Exposure via Metadata

Strategic Overview

Status
Patched in 2.2.0
Affected Plugin
GenerateBlocks
Affected Version
<= 2.1.2
CVSS
4.3Medium
Weakness type
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
CVE
CVE-2025-12512
View all GenerateBlocks vulnerabilities

At a glance

CVE-2025-12512 is a medium-severity Exposure of Sensitive Information to an Unauthorized Actor vulnerability in the GenerateBlocks WordPress plugin, affecting versions <= 2.1.2. It carries a CVSS score of 4.3 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Contributor level or above. The issue is fixed in version 2.2.0; sites on affected versions should update now. Disclosed December 2025, reported by Athiwat Tiprasaharn (Jitlada).

Vulnerability Overview

The GenerateBlocks plugin for WordPress is vulnerable to information exposure due to missing object-level authorization checks in versions up to, and including, 2.1.2. This is due to the plugin registering multiple REST API routes under `generateblocks/v1/meta/` that gate access with `current_user_can('edit_posts')`, which is granted to low-privileged roles such as Contributor. The handlers accept arbitrary entity IDs (user IDs, post IDs, etc.) and meta keys, returning any requested metadata with only a short blacklist of password-like keys for protection. There is no object-level authorization ensuring the caller is requesting only their own data, and there is no allowlist of safe keys. This makes it possible for authenticated attackers, with Contributor-level access and above, to exfiltrate personally identifiable information (PII) and other sensitive profile data of administrator accounts or any other users by directly querying user meta keys via the exposed endpoints via the `get_user_meta_rest` function. In typical WordPress + WooCommerce setups, this includes names, email, phone, and address fields that WooCommerce stores in user meta, enabling targeted phishing, account takeover pretexting, and privacy breaches.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.

CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

GenerateBlocks <= 2.1.2 carries this weakness at edit_posts, and reaching it takes an account at Contributor level or above. Sensitive information exposure means data the application intended to keep internal is returned to a caller who should not be able to see it.

The disclosed data — credentials, tokens, customer records or internal paths — is usually worth more as material for a follow-up attack than as an end in itself. For GenerateBlocks the fix is 2.2.0: builds <= 2.1.2 are affected, anything from 2.2.0 onward is not.

Remediation

Update to version 2.2.0, or a newer patched version

How does WordSec protect against this?

The fix is the thing that ends this: GenerateBlocks 2.2.0 closes this, and updating the plugin is the step that ends it.

  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C