Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-46541 Overview
CVE-2025-46541 is a stored Cross-Site Scripting (XSS) vulnerability in the wp-recaptcha-bp WordPress plugin by elrata_. The flaw stems from improper neutralization of user-controlled input during web page generation [CWE-79]. All versions of WP-reCAPTCHA-bp up to and including 4.1 are affected. An authenticated attacker with high privileges can inject persistent JavaScript payloads that execute in victims' browsers when they view the affected pages. Because the vulnerability has a changed scope, injected scripts can affect resources beyond the vulnerable component itself.
Critical Impact
Authenticated attackers can inject persistent JavaScript into WordPress pages, enabling session hijacking, credential theft, and administrative action abuse against site visitors and administrators.
Affected Products
- elrata_ WP-reCAPTCHA-bp plugin for WordPress
- All versions from initial release through 4.1
- WordPress sites using BuddyPress with this reCAPTCHA integration
Discovery Timeline
- 2025-04-24 - CVE-2025-46541 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-46541
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the wp-recaptcha-bp plugin, which integrates Google reCAPTCHA into BuddyPress registration and login flows. The plugin fails to properly sanitize or encode input values before they are rendered in generated HTML output. An attacker with high-privileged access submits a malicious payload containing JavaScript. The payload is persisted in the WordPress database and later rendered without adequate escaping, triggering script execution in the context of the affected site.
Exploitation requires user interaction, meaning a victim must load the page containing the injected content. The scope change means scripts injected into the plugin's output can access cookies, tokens, or DOM elements outside the plugin's immediate boundary. Successful exploitation can lead to session theft, forced administrative actions, or site defacement.
Root Cause
The root cause is missing or insufficient output encoding when rendering stored input in plugin-generated pages. WordPress provides escaping helpers such as esc_html(), esc_attr(), and wp_kses(), but the vulnerable plugin paths render stored values directly into HTML contexts without applying them. This allows raw <script> tags or event-handler attributes supplied by an attacker to be interpreted by the browser.
Attack Vector
The attack vector is network-based and requires an authenticated session with high privileges. The attacker submits a crafted payload through an input field handled by the plugin. The payload is stored server-side and later served to any user visiting the affected page. Victim interaction is required to trigger execution. See the Patchstack Security Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-46541
Indicators of Compromise
- Unexpected <script> tags, javascript: URIs, or inline event handlers (onerror=, onload=) in WordPress database rows associated with the plugin
- Anomalous outbound requests from browsers of logged-in administrators to attacker-controlled domains
- New or modified administrator accounts shortly after an admin viewed a plugin-generated page
- WordPress audit logs showing plugin option updates from unexpected IP addresses
Detection Strategies
- Review stored plugin configuration and user-submitted values in wp_options and BuddyPress metadata tables for HTML or script content
- Deploy a web application firewall rule set that flags XSS payloads in requests targeting wp-recaptcha-bp endpoints
- Enable WordPress logging plugins to track option changes and privileged user actions tied to the plugin
Monitoring Recommendations
- Monitor Content Security Policy (CSP) violation reports for inline script execution on pages that embed the plugin
- Alert on administrator session cookies being transmitted to domains outside the site's trust boundary
- Track plugin version inventory across WordPress fleets and flag any installation still running version 4.1 or earlier
How to Mitigate CVE-2025-46541
Immediate Actions Required
- Disable the wp-recaptcha-bp plugin until a patched release is confirmed and installed
- Audit all WordPress administrator accounts and rotate credentials and session tokens
- Review stored plugin data and remove any entries containing script tags or suspicious HTML attributes
- Restrict administrative access to known IP ranges while remediation is in progress
Patch Information
At the time of publication, no fixed version is listed in the advisory. The vulnerability affects WP-reCAPTCHA-bp versions up to and including 4.1. Monitor the Patchstack advisory and the plugin's WordPress repository page for a vendor-supplied fix.
Workarounds
- Replace wp-recaptcha-bp with an actively maintained CAPTCHA plugin for BuddyPress
- Deploy a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
- Apply a WAF rule to block requests containing HTML or script tokens targeting plugin endpoints
- Limit the number of accounts holding administrator or editor privileges to reduce the attack surface
# Example WordPress CLI commands to inventory and disable the vulnerable plugin
wp plugin list --name=wp-recaptcha-bp --fields=name,status,version
wp plugin deactivate wp-recaptcha-bp
wp plugin delete wp-recaptcha-bp
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

