# Smart Coupons For WooCommerce Coupons <= 2.3.3 - Unauthenticated Insecure Direct Object Reference to Coupon Application via 'coupon_id' Parameter

- **ID:** WPSEC-2026-3594
- **Plugin:** Smart Coupons For WooCommerce Coupons (`wt-smart-coupons-for-woocommerce`), https://wordpress.org/plugins/wt-smart-coupons-for-woocommerce/
- **Affected versions:** from 1.4.8 before 2.3.4
- **Fixed in:** 2.3.4 (Update to 2.3.4 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-20)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wt-smart-coupons-for-woocommerce
- **Fix released:** 2026-11-19
- **Published:** 2026-11-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3594/

## Description

The Smart Coupons For WooCommerce Coupons plugin for WordPress is vulnerable to Insecure Direct Object Reference via the apply_coupon_on_click AJAX action in all versions up to, and including, 2.3.3, due to the handler loading the coupon from a user-supplied 'coupon_id' and applying its code, without requiring the visitor to know that code. This makes it possible for unauthenticated attackers to enumerate coupon IDs and apply published coupons whose codes they do not know to their cart, such as private discount codes. WooCommerce's usual usage restrictions still apply.

## References

- https://wpsec.com/vuln/WPSEC-2026-3594/
- https://plugins.svn.wordpress.org/wt-smart-coupons-for-woocommerce/tags/2.3.4/
- https://wordpress.org/plugins/wt-smart-coupons-for-woocommerce/

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

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.
