# Advanced Coupons for WooCommerce Coupons <= 4.7.6.1 - Authenticated (Subscriber+) Business Logic Flaw to Store Credit Deduction Bypass via Store API Checkout

- **ID:** WPSEC-2026-4048
- **Plugin:** Advanced Coupons for WooCommerce – BOGO, Store Credit & WooCommerce Coupons (`advanced-coupons-for-woocommerce-free`), https://wordpress.org/plugins/advanced-coupons-for-woocommerce-free/
- **Affected versions:** from 4.7.3 before 4.7.7
- **Fixed in:** 4.7.7 (Update to 4.7.7 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-840
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/advanced-coupons-for-woocommerce-free
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4048/

## Description

The Advanced Coupons for WooCommerce plugin for WordPress is vulnerable to a business logic flaw in the store credits block (Store API) checkout in all versions up to, and including, 4.7.6.1. This is due to the Store API draft order keeping the store credit discount meta after the store credit is removed from the session, while the balance deduction step does nothing when no session data is present. This makes it possible for authenticated attackers, with customer-level access and above, to complete orders discounted by store credit without that credit being deducted from their balance, and so spend the same store credit again and again.

## References

- https://wpsec.com/vuln/WPSEC-2026-4048/
- https://plugins.svn.wordpress.org/advanced-coupons-for-woocommerce-free/tags/4.7.7/
- https://wordpress.org/plugins/advanced-coupons-for-woocommerce-free/

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

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.
