
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5742 is a Stored Cross-Site Scripting (XSS) vulnerability in the UsersWP plugin for WordPress, affecting versions up to and including 1.2.60. The flaw arises from insufficient input sanitization of user-supplied URL fields and improper output escaping when rendering user profile data in badge widgets. It was published on April 9, 2026, and assigned a CVSS v3.1 base score of 6.4 (Medium) (GitHub Advisory, Wordfence).
The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). Specifically, the plugin fails to properly sanitize user-supplied URL fields during profile data submission and does not apply adequate output escaping when those values are rendered inside badge widgets on the front end. Relevant vulnerable code paths include includes/class-forms.php (line 1963), includes/helpers/pages.php (lines 392–540, 522–527), and vendor/ayecode/wp-ayecode-ui/includes/components/class-aui-component-button.php (line 53). An authenticated attacker with at minimum subscriber-level access can craft a malicious URL value in their profile that persists in the database and executes as a script in any visitor's browser when a page containing the badge widget is loaded (GitHub Advisory, Wordfence).
Successful exploitation allows authenticated attackers (subscriber-level or above) to inject persistent malicious JavaScript that executes in the browsers of any user visiting a page containing the affected badge widget. This can lead to session hijacking, credential theft, malware distribution, or defacement of website content visible to other users. Because the injected script executes in the context of the victim's browser session, it may also be used to perform unauthorized actions on behalf of higher-privileged users, including administrators (GitHub Advisory, Wordfence).
There is no public proof-of-concept exploit code and no evidence of active in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.056% (0.000560), placing it in a low probability tier for near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires a valid account with at least subscriber-level privileges, which somewhat limits the attack surface compared to unauthenticated vulnerabilities.
javascript:alert(document.cookie) or an <img> tag with an onerror handler (e.g., https://evil.example.com/" onmouseover="alert(1)) into the URL field and save the profile./wp-admin/admin-ajax.php or UsersWP profile save actions) from subscriber-level accounts containing URL-encoded JavaScript or event handler strings (e.g., javascript:, onerror=, onmouseover=).usermeta table for URL-type fields associated with user profiles.Update the UsersWP plugin to a version newer than 1.2.60, which includes the fix applied in changeset 3501691 (GitHub Advisory). As interim measures, administrators should audit existing user profiles for suspicious URL field values and restrict profile editing capabilities to trusted users where possible. Implementing a Content Security Policy (CSP) header can reduce the impact of any XSS exploitation. Wordfence users with the premium firewall rules may receive additional protection (Wordfence).
Wordfence included CVE-2026-5742 in their weekly WordPress vulnerability report for April 6–12, 2026, noting it as a medium-severity stored XSS issue requiring authenticated access (Wordfence Blog). The vulnerability was also catalogued by ENISA's EUVD (EUVD-2026-20846) and tracked by several vulnerability aggregation platforms. No significant independent researcher commentary or broader media coverage has been identified beyond standard vulnerability database listings.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."