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.







