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-2836 Overview
CVE-2025-2836 is a stored Cross-Site Scripting (XSS) vulnerability in the RegistrationMagic WordPress plugin, which provides custom registration forms, user registration, payment, and user login functionality. The flaw affects all versions up to and including 6.0.4.3 and stems from insufficient input sanitization and output escaping on the payment_method parameter. Authenticated attackers holding Subscriber-level access or higher can inject arbitrary web scripts that execute when any user views an affected page. The issue is categorized under CWE-79.
Critical Impact
Low-privileged authenticated users can persist malicious JavaScript into plugin-rendered pages, enabling session theft, administrative action hijacking, and site defacement against visitors and administrators.
Affected Products
- RegistrationMagic – Custom Registration Forms, User Registration, Payment, and User Login plugin for WordPress
- All versions up to and including 6.0.4.3
- WordPress sites allowing Subscriber-level (or higher) account registration
Discovery Timeline
- 2025-04-04 - CVE-2025-2836 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-2836
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the RegistrationMagic plugin's payment handling flow. The plugin accepts the payment_method parameter from authenticated users without applying adequate sanitization on input or escaping on output. Attacker-controlled values persist to the database and are later rendered into pages displayed to other users, including administrators. Because the payload is stored, each visit to an affected page re-triggers execution in the victim's browser context under the site's origin.
An attacker leveraging this flaw can execute JavaScript in administrator sessions, enabling theft of authentication cookies, forced submission of privileged forms, creation of new administrator accounts, or redirection to attacker-controlled infrastructure. Scope change elevates impact: the injected script runs under the WordPress origin, affecting resources beyond the vulnerable component.
Root Cause
The underlying defect is a classic failure to sanitize user-supplied input and escape output when rendering stored data. The payment_method field is trusted by the plugin's form factory and registration handlers. Code paths in class_registration_magic.php and class_rm_form_factory_revamp.php write and later emit this value without applying WordPress core helpers such as sanitize_text_field() on input or esc_html()/esc_attr() on output.
Attack Vector
Exploitation requires a valid account with Subscriber-level privileges or higher — the default WordPress registration role on many sites. The attacker submits a crafted payment_method value containing JavaScript during a plugin-driven form interaction. The payload is stored by the plugin and executes whenever any authenticated user, including administrators, loads a page that renders the stored value. No user interaction beyond normal page navigation is required for the payload to fire.
Technical details are available in the Wordfence Vulnerability Report and the WordPress Change Set 3265041.
Detection Methods for CVE-2025-2836
Indicators of Compromise
- Stored payment_method values in RegistrationMagic database tables containing <script>, onerror=, onload=, or javascript: substrings.
- Unexpected administrator account creations or role changes following Subscriber registration activity.
- Outbound requests from administrator browsers to unfamiliar domains after visiting plugin-rendered pages.
- POST requests to RegistrationMagic form endpoints submitting non-standard payment method values.
Detection Strategies
- Audit RegistrationMagic form submission records for HTML tags or JavaScript event handlers in the payment_method field.
- Deploy a web application firewall rule to flag registration/payment POST requests containing script markup or encoded script payloads.
- Review WordPress audit logs for new user registrations immediately followed by plugin form submissions from the same session.
Monitoring Recommendations
- Enable Content Security Policy (CSP) reporting to surface inline script execution attempts on WordPress admin and public pages.
- Monitor WordPress wp_users and wp_usermeta tables for privilege escalations correlated with plugin activity.
- Alert on administrator session cookies being used from new IP addresses or user agents shortly after visiting plugin-managed pages.
How to Mitigate CVE-2025-2836
Immediate Actions Required
- Update the RegistrationMagic plugin to the version released in WordPress Change Set 3265041, which supersedes 6.0.4.3.
- Audit all existing Subscriber-level and above accounts, removing any created by untrusted sources during the exposure window.
- Inspect stored RegistrationMagic form data for injected scripts and purge malicious entries.
- Rotate administrator credentials and invalidate active sessions if exploitation is suspected.
Patch Information
The vendor addressed the issue in a release following version 6.0.4.3. Review the fix in the WordPress Change Set 3265041 and update through the WordPress plugin dashboard or by replacing plugin files from a trusted source.
Workarounds
- Disable open user registration or restrict new accounts to trusted email domains until patching is complete.
- Deploy a WAF rule blocking POST parameters named payment_method that contain <, >, or javascript: sequences.
- Enforce a strict Content Security Policy that disallows inline scripts on pages rendered by the plugin.
- Temporarily deactivate the RegistrationMagic plugin on sites that cannot immediately apply the update.
# Configuration example: temporarily deactivate the plugin via WP-CLI
wp plugin deactivate custom-registration-form-builder-with-submission-manager
# After updating, verify the installed version is newer than 6.0.4.3
wp plugin get custom-registration-form-builder-with-submission-manager --field=version
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

