GitHub Advisoryadvisory · Packagist
GHSA-h5gm-x9wr-vhcm Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass
MEDIUM
Official page ↗
- Aliases
- CVE-2026-55795
- Ecosystem
- Packagist
- Packages
- craftcms/commerce
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- Weaknesses
- CWE-307
- Reviewed
- 2026-06-19
Affected packages
• Packagist craftcms/commerce: >= 5.0.0, < 5.6.5 → fixed in 5.6.5
• Packagist craftcms/commerce: >= 4.0.0, < 4.11.2 → fixed in 4.11.2
Description
Summary
The CartController defines a RateLimiter behavior that is only activated when the 'number' POST/GET parameter is explicitly provided.
Details
When an attacker submits coupon codes against the session-based cart (without passing a 'number' parameter), no rate limiting is applied. This allows unlimited attempts to guess coupon codes.
Vulnerable Code
PoC
Complete instructions, including specific configuration details, to reproduce the vulnerability.
Impact
An attacker can enumerate all coupon codes through automated requests.
Remediation
Apply rate limiting unconditionally on actionUpdateCart regardless of whether 'number' is present.
Related
Alias · CVE (1)
- CVE-2026-55795 Craft Commerce is an ecommerce platform for Craft CMS. vulnerability
Weakness · CWE (1)
- CWE-307 Improper Restriction of Excessive Authentication Attempts weakness