Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-5742
WordPress vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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.

Exploitation steps

  1. Obtain a low-privilege account: Register or obtain a subscriber-level (or higher) account on the target WordPress site running UsersWP ≤ 1.2.60.
  2. Locate the profile URL field: Navigate to the user profile edit page provided by the UsersWP plugin and identify URL input fields (e.g., website or social profile URL fields).
  3. Inject a malicious payload: Enter a JavaScript payload disguised as a URL value, such as 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.
  4. Payload persistence: The unsanitized value is stored in the WordPress database, associated with the attacker's user profile.
  5. Trigger execution: When any site visitor (including administrators) loads a page containing the badge widget that renders the attacker's profile data, the injected script executes in their browser context.
  6. Achieve objective: Leverage the executed script to steal session cookies, redirect victims to phishing pages, log keystrokes, or perform actions on behalf of the victim user (GitHub Advisory, Wordfence).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to profile update endpoints (e.g., /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=).
  • Database: Unexpected JavaScript or HTML event handler strings stored in the usermeta table for URL-type fields associated with user profiles.
  • Network: Outbound requests from victim browsers to unknown external domains shortly after loading pages with badge widgets, potentially indicating cookie exfiltration or beacon calls.
  • Browser/Client: Unexpected JavaScript alerts, redirects, or network requests triggered when visiting pages containing UsersWP badge widgets.

Mitigation and workarounds

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).

Community reactions

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.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-88788MEDIUM6.8
  • text-styler
NoNoSep 19, 2026
CVE-2026-9858MEDIUM4.3
  • wc-partial-shipment
NoYesSep 19, 2026
CVE-2026-9766MEDIUM4.3
  • empik-for-woocommerce
NoYesSep 19, 2026
CVE-2026-9613MEDIUM4.3
  • datalogics
NoYesSep 19, 2026
CVE-2026-87848LOW3.7
  • mpcx-lightbox
NoNoSep 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management