# Razorpay for WooCommerce <= 4.8.8 - Unauthenticated Authentication Bypass via 'email' Parameter in Coupon Apply Endpoint

- **ID:** WPSEC-2026-2604
- **Plugin:** Razorpay for WooCommerce (`woo-razorpay`), https://wordpress.org/plugins/woo-razorpay/
- **Affected versions:** from 3.0.0 before 4.8.9
- **Fixed in:** 4.8.9 (Update to 4.8.9 or later.)
- **Severity:** Low 3.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-287
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/woo-razorpay
- **Fix released:** 2026-11-04
- **Published:** 2026-11-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2604/

## Description

The Razorpay for WooCommerce plugin for WordPress is vulnerable to Authentication Bypass via the 'email' parameter of the Magic Checkout coupon-apply REST endpoint in all versions up to, and including, 4.8.8, due to the unauthenticated endpoint looking up a user by an unverified email address supplied in the request and passing that user to wp_set_current_user(). This makes it possible for unauthenticated attackers who know a user's email address to act as that user, including administrators, for the rest of the coupon-apply request, for example to apply coupons that are restricted to that user. Exploitation requires the Smart Coupons for WooCommerce plugin to be active.

## References

- https://wpsec.com/vuln/WPSEC-2026-2604/
- https://plugins.svn.wordpress.org/woo-razorpay/tags/4.8.9/
- https://wordpress.org/plugins/woo-razorpay/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-2604/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
