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

CVE-2026-4512
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-4512 is a stored Cross-Site Scripting (XSS) vulnerability in the "reCaptcha by WebDesignBy" WordPress plugin affecting all versions before 2.0. The flaw allows authenticated administrators on WordPress multisite installations (lacking the unfiltered_html capability) to inject arbitrary JavaScript via the Site Key setting, which then executes for all visitors to the WordPress login page. It was publicly disclosed on April 2, 2026, and carries a CVSS v3.1 base score of 3.5 (Low) (WPScan, GitHub Advisory).

Technical details

The root cause is improper output encoding (CWE-79): the plugin's grecaptcha_js() function outputs the administrator-supplied Site Key value directly into a JavaScript string context without sanitization or escaping. In a standard single-site WordPress installation, only users with the unfiltered_html capability (typically Super Admins) can inject raw HTML/JS, but this plugin bypasses that control by embedding unsanitized input into JavaScript rather than HTML. On multisite installations, site-level administrators who lack unfiltered_html can exploit this by navigating to Settings > reCaptcha and entering a malicious payload in the Site Key field, causing it to be stored and rendered to all login page visitors (WPScan, GitHub Advisory).

Impact

Successful exploitation allows an attacker with site administrator privileges on a WordPress multisite installation to persistently inject malicious JavaScript that executes in the browsers of all users visiting the WordPress login page. This can be leveraged for credential harvesting, session hijacking, phishing, or malware distribution targeting every user who attempts to log in. Availability is not directly impacted, but confidentiality and integrity are both affected at a low level per the CVSS scoring (WPScan, GitHub Advisory).

Exploitability

There is no evidence of active in-the-wild exploitation or a publicly available proof-of-concept exploit at this time. The EPSS score is approximately 0.009% (1st percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access as a site administrator on a multisite WordPress installation, significantly limiting the attack surface (GitHub Advisory, WPScan).

Exploitation steps

  1. Identify target: Locate a WordPress multisite installation running the "reCaptcha by WebDesignBy" plugin at a version below 2.0, where the attacker has site administrator credentials but lacks the unfiltered_html capability.
  2. Authenticate: Log in to the WordPress admin dashboard as a site administrator on the multisite network.
  3. Navigate to plugin settings: Go to Settings > reCaptcha in the WordPress admin panel.
  4. Inject malicious payload: Enter a JavaScript payload in the Site Key field, such as ";alert(document.cookie);// or a more sophisticated payload designed to exfiltrate credentials or session tokens to an attacker-controlled server.
  5. Save settings: Submit the form to store the malicious payload in the WordPress database.
  6. Payload execution: When any user visits the WordPress login page (/wp-login.php), the grecaptcha_js() function outputs the unsanitized Site Key into a JavaScript string context, causing the injected script to execute in the visitor's browser (WPScan).

Indicators of compromise

  • Logs: WordPress admin audit logs showing changes to the reCaptcha plugin's Site Key setting, particularly entries from site-level administrators on multisite installations; web server access logs showing unusual outbound requests from the login page to external domains.
  • File System / Database: Suspicious or encoded JavaScript content stored in the WordPress options table under the reCaptcha plugin's Site Key option (e.g., wp_options table, option name related to webdesignby-recaptcha).
  • Network: Outbound HTTP requests from users' browsers to unknown external domains originating from the WordPress login page (/wp-login.php); unexpected POST requests to attacker-controlled endpoints containing cookie or credential data.
  • Browser/Client: JavaScript errors or unexpected network requests visible in browser developer tools when loading the WordPress login page.

Mitigation and workarounds

Update the "reCaptcha by WebDesignBy" WordPress plugin to version 2.0 or later, which includes proper sanitization and escaping of the Site Key setting before output (WPScan). As an interim measure, restrict access to plugin settings to trusted administrators only and audit the current Site Key value in the plugin settings for any suspicious content. On WordPress multisite installations, network administrators should review which site administrators have access to plugin configuration and consider removing the plugin if it is not actively needed until patching is possible.

Community reactions

The vulnerability was discovered and reported by security researcher Mustafa Ahmed of Fortress MSSP and verified by WPScan (WPScan). A technical write-up was published by Infinit Security (Infinit Security). No significant broader media coverage or notable community debate has been observed, consistent with the low severity rating and limited exploitability of this vulnerability.

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-92541HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-92540HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-86785MEDIUM5.3
  • woo-to-facebook-shop
NoNoSep 20, 2026
CVE-2026-92965LOW3.7
  • tiktok-for-business
NoYesSep 20, 2026
CVE-2026-92423LOW2.7
  • meow-gallery
NoYesSep 20, 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