CVE-2025-12512
Unknown Unknown - Not Provided
Information Exposure in GenerateBlocks WordPress Plugin via Inadequate Authorization

Publication date: 2025-12-13

Last updated on: 2025-12-13

Assigner: Wordfence

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-13
Last Modified
2025-12-13
Generated
2026-05-06
AI Q&A
2025-12-13
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
generateblocks generateblocks 2.1.2
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The GenerateBlocks plugin for WordPress has a vulnerability where it lacks proper object-level authorization checks in its REST API routes. This means that users with low privileges, such as Contributors, can access metadata of other users by querying arbitrary user IDs and meta keys. The plugin only blocks a few password-like keys but does not restrict access to other sensitive information. As a result, attackers can retrieve personally identifiable information (PII) and sensitive profile data of administrators or other users through these exposed endpoints.


How can this vulnerability impact me? :

This vulnerability can allow authenticated users with Contributor-level access or higher to exfiltrate sensitive information such as names, emails, phone numbers, and addresses stored in user meta data. In setups using WooCommerce, this can lead to targeted phishing attacks, account takeover attempts, and privacy breaches by exposing personally identifiable information of administrators and other users.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

This vulnerability allows authenticated users with low privileges to access personally identifiable information (PII) and sensitive profile data of other users, including administrators. Such unauthorized exposure of PII, including names, emails, phone numbers, and addresses, can lead to privacy breaches and targeted attacks. This undermines compliance with data protection regulations like GDPR and HIPAA, which require strict controls on access to personal data and mandate protection against unauthorized disclosure. [1]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

You can detect this vulnerability by checking if your WordPress installation is running the GenerateBlocks plugin version 2.1.2 or earlier. Additionally, monitoring REST API requests to endpoints under 'generateblocks/v1/meta/' for unauthorized access attempts can help detect exploitation. Specific commands include: 1) Using WP-CLI to check plugin version: `wp plugin list --field=version --name=generateblocks` 2) Using curl or similar tools to test REST API endpoints, e.g., `curl -i -X GET https://your-site.com/wp-json/generateblocks/v1/meta/user/1` to see if user meta data is exposed without proper authorization. 3) Reviewing web server logs for suspicious REST API calls to 'generateblocks/v1/meta/' endpoints. These methods help identify if the vulnerable plugin version is present and if unauthorized data access attempts occur. [1]


What immediate steps should I take to mitigate this vulnerability?

The immediate mitigation step is to update the GenerateBlocks plugin to version 2.2.0 or later, which includes enhanced security controls restricting unauthorized REST API access to meta data. This update enforces strict permission checks, restricts access to sensitive meta keys, and prevents exposure of user meta data to unauthorized users. If updating is not immediately possible, restrict access to the REST API endpoints under 'generateblocks/v1/meta/' via firewall or server configuration to limit exposure. Additionally, review user roles and capabilities to ensure that only trusted users have Contributor-level or higher access, as the vulnerability requires at least Contributor privileges to exploit. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart