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

Medium 4.3 Published Updated

Authenticated contributors can exfiltrate sensitive user metadata, including PII, due to missing object-level authorization in GenerateBlocks REST API endpoints.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-12512?

CVE-2025-12512 is a medium-severity vulnerability in edge22 GenerateBlocks, published on 13 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-200

Which versions are affected by CVE-2025-12512?

How do I fix CVE-2025-12512?

No fix has been published for CVE-2025-12512 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-12512 being exploited?

There is no known exploitation of CVE-2025-12512 in the wild and no public exploit code.

Sources

Also known as GHSA-fxjp-p7jh-rpgg.

Is CVE-2025-12512 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free