# Smart Coupons For WooCommerce Coupons <= 2.3.3 - Unauthenticated Business Logic Bypass to Arbitrary Free Products via 'variation_id' Parameter

- **ID:** WPSEC-2026-3596
- **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.0 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-20
- **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-3596/

## Description

The Smart Coupons For WooCommerce Coupons plugin for WordPress is vulnerable to a business logic flaw via the 'variation_id' parameter of the wt_choose_free_product AJAX action in all versions up to, and including, 2.3.3, due to the handler checking the submitted product ID against the coupon's giveaway list but then adding the unvalidated variation ID to the cart as the free gift. This makes it possible for unauthenticated attackers to add any product in the store to their cart as a 100% discounted giveaway item.

## References

- https://wpsec.com/vuln/WPSEC-2026-3596/
- 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-3596/

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.
