Bagisto through 2.5.2 contains an insecure randomness vulnerability that allows customers to predict bulk coupon codes
Source GCVE Database
Not known to be exploited · CVSS 2.3 Low.
Data as of 5 Dec 2026, 20:09 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 2.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 3.1 |
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| WebkulBagisto | Affected
| Fixed in– |
PackagistBagistopkg:composer/BagistoOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, consider restricting access to issued coupon codes and monitoring coupon redemption patterns to detect abuse.
Description
Bagisto versions through 2.5.2 have an insecure randomness vulnerability in the coupon code generation process. The vulnerability arises from using PHP rand() in CartRuleCouponRepository::getRandomString(), which allows attackers who possess two or more coupon codes from the same batch to predict other unissued codes. This enables unauthorized redemption of discounts. The vulnerability has a low CVSS score of 3.1, indicating limited impact.
References
- nvd.nist.gov/vuln/detail/CVE-2026-145562 (opens in a new tab)
- github.com/bagisto/bagisto/blob/v2.5.2/packages/Webkul/CartRule/src/Repositories/CartRuleCouponRepository.php (opens in a new tab)
- vulncheck.com/advisories/bagisto-through-2.5.2-predictable-coupon-codes-via-cartrulecouponrepository (opens in a new tab)