Atomic Edge analysis of CVE-2026-2307:
The Elementor Website Builder plugin for WordPress, versions up to and including 4.0.5, exposes sensitive user data through the `/wp-json/elementor/v1/user` REST endpoint. This endpoint is accessible to authenticated users with Contributor-level permissions and above. Atomic Edge analysis confirms the vulnerability allows any such user to retrieve email addresses, password hashes, and usernames for all WordPress users, resulting in a CVSS score of 6.5 (Medium) and CWE-200 classification.
Root Cause:
The vulnerability resides in the `User_Query` class located at `elementor/modules/wp-rest/classes/user-query.php`. The `get()` method fails to restrict the fields returned by the underlying `get_users()` call. It constructs a query with `number`, `search`, and optionally `meta_query` parameters, then maps each user object to an array using `translate_keys()`. The map includes all user object properties (e.g., `user_email`, `user_pass`, `user_login`) because the original code casts the entire `WP_User` object to an array and only adds `display_name` and `role`. No allowlist of safe fields is applied. The endpoint is registered with a permission callback that only checks for `edit_posts` capability (typical for Contributors), not for `list_users` or `edit_users`. This design exposes the full user record, including password hashes, to low-privileged users.
Exploitation:
An attacker with a Contributor account can send a GET request to `/wp-json/elementor/v1/user` with parameters such as `search` (to match all users by using a wildcard or empty string) and `items_count` (to control the number of results, up to `MAX_RESPONSE_COUNT`). The response includes a `data.value` array where each element contains keys like `ID`, `user_login`, `user_email`, `user_pass`, `user_nicename`, `user_registered`, and others. The attacker can iterate through all users by using the search parameter or by setting a high `items_count`. No special payload is required; the endpoint returns the data directly.
Patch Analysis:
Version 4.0.6 replaces the direct `get_users()` call with an internal REST request to `/wp/v2/users` using `WP_REST_Request` and `rest_do_request()`. The new code sets `context` to `edit`, which requires the `list_users` capability, and maps only `id`, `name`, and `roles` from the response. This change enforces WordPress’s standard REST API permission checks and field filtering, preventing unauthorized access to sensitive fields. The patch also marks the endpoint as deprecated and adds a `_doing_it_wrong()` notice. The removal of custom search filters and meta query handling further reduces the attack surface.
Impact:
Successful exploitation exposes email addresses, password hashes, and usernames for all WordPress users. Attackers can use this information for credential stuffing, password cracking, phishing, and targeted attacks. The exposure of password hashes is particularly severe because it enables offline brute-force attacks. This vulnerability does not directly lead to privilege escalation or remote code execution, but it significantly aids further compromise of the site.







