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-2024-10850 Overview
CVE-2024-10850 is a Reflected Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting the Razorpay Payment Button Elementor Plugin for WordPress. The flaw exists in all versions up to and including 1.2.5. The plugin uses add_query_arg and remove_query_arg without proper escaping on the URL, allowing unauthenticated attackers to inject arbitrary JavaScript. Successful exploitation requires tricking a user into clicking a crafted link. Once triggered, the injected script executes in the victim's browser session within the context of the vulnerable site.
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser by convincing them to click a malicious URL, enabling session theft, credential harvesting, and administrative action hijacking.
Affected Products
- Razorpay Payment Button Elementor Plugin for WordPress — all versions through 1.2.5
- Deployments using the vulnerable includes/rzp-payment-buttons.php component
- WordPress sites exposing the plugin's URL handlers to unauthenticated visitors
Discovery Timeline
- 2024-11-13 - CVE-2024-10850 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-10850
Vulnerability Analysis
The vulnerability resides in the Razorpay Payment Button Elementor Plugin's handling of URL parameters within includes/rzp-payment-buttons.php. The plugin passes attacker-controlled URL data through add_query_arg() and remove_query_arg() and renders the result back into page output without escaping. WordPress documentation explicitly warns that both functions can return unsanitized user input and require escaping before use in HTML contexts.
Because the injection point is reflected in server-generated HTML, any script payload supplied via query parameters executes in the victim's browser. The attack requires user interaction, typically clicking a crafted link delivered via phishing, chat, or embedded on a third-party page. Impact scope is changed because the script executes under the targeted WordPress origin, potentially accessing cookies, authenticated sessions, and administrative functionality if the victim is logged in. See the Wordfence Vulnerability Report for additional context.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The plugin trusts the output of add_query_arg and remove_query_arg without applying context-appropriate escaping such as esc_url() or esc_attr() before echoing the URL into the DOM. Review the WordPress Plugin Code Reference for the vulnerable code path.
Attack Vector
An unauthenticated attacker crafts a URL targeting a page where the vulnerable plugin renders query arguments. The URL contains JavaScript payload bytes encoded within query parameters. When a victim loads the link, the server reflects the payload into the HTML response. The browser parses the injected markup and executes the script under the site's origin. No authentication is required from the attacker; only the victim must perform the click.
No verified public proof-of-concept code is available at this time. Refer to the vendor advisory and plugin source references for technical specifics.
Detection Methods for CVE-2024-10850
Indicators of Compromise
- Web server access logs containing requests to pages hosting the Razorpay payment button with query strings containing <script, javascript:, onerror=, or URL-encoded equivalents (%3Cscript, %22%3E).
- Referrer headers pointing to external domains for requests that include unusual query parameters on plugin-rendered pages.
- Unexpected outbound requests from administrator browsers immediately after visiting plugin-related URLs.
Detection Strategies
- Inventory WordPress sites and identify installations of razorpay-payment-button-elementor at version 1.2.5 or earlier.
- Deploy web application firewall rules that flag reflected script tags, event handlers, and javascript: schemes within query parameters.
- Monitor for anomalous session activity on administrator accounts following link clicks from untrusted sources.
Monitoring Recommendations
- Enable verbose logging on WordPress and the fronting web server to capture full query strings for forensic review.
- Alert on HTTP responses that reflect raw user-supplied strings into HTML without encoding.
- Track plugin version drift across managed WordPress estates to detect out-of-date installations.
How to Mitigate CVE-2024-10850
Immediate Actions Required
- Update the Razorpay Payment Button Elementor Plugin to a version later than 1.2.5 as published in the vendor's WordPress Changeset Update.
- Audit administrator and editor accounts for suspicious activity, including unauthorized user creation and plugin changes.
- Rotate session cookies and administrator passwords on sites that may have been exposed to crafted links.
Patch Information
The vendor committed a fix in changeset 3186535 to the plugin trunk. Apply the latest release available through the WordPress plugin repository. Review the WordPress Changeset Update to validate that add_query_arg and remove_query_arg outputs are now escaped before rendering.
Workarounds
- Deactivate and remove the plugin on sites that cannot immediately upgrade.
- Implement a web application firewall rule that blocks requests containing script-like payloads in query parameters targeting plugin endpoints.
- Restrict administrative access to trusted networks and enforce multi-factor authentication to limit the impact of session theft.
# Example WP-CLI commands to inventory and update the vulnerable plugin
wp plugin list --name=razorpay-payment-button-elementor --fields=name,status,version
wp plugin update razorpay-payment-button-elementor
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

