Vulnerability · Published May 29, 2026 · Assigned by GitHub_M
CVE-2026-47741Shopper: Race condition on Discount.usage_limit allows silent over-redemption
Medium 5.9
In plain English
A medium-severity race condition in shopper from shopperlabs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Shopper is a Headless e-commerce Admin Panel. Prior to 2.8.0, CreateOrderFromCartAction::execute previously created the Order row before checking and incrementing the discount's total_use counter. Under concurrent checkout pressure (Black Friday, flash sale, viral coupon), the global usage_limit was silently exceeded: orders were committed with the discount fully applied to price_amount while the counter blocked at usage_limit. The merchant had no signal that an over-redemption had occurred. This vulnerability is fixed in 2.8.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | shopper/cart | 2.8.0 | GHSA-9rh9-hf3w-9fgg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| shopperlabs | shopper | < 2.8.0 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/shopperlabs/shopper/security/advisories/GHSA-9rh9-hf3w-9fgg x_refsource_CONFIRM
- https://github.com/shopperlabs/shopper/issues/510 x_refsource_MISC
- https://github.com/shopperlabs/shopper/pull/511 x_refsource_MISC