CVE-2026-55795

Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass

Published Sep 14, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Craft Commerce is an ecommerce platform for Craft CMS. From 4.0.0 until 4.11.2 and 5.6.5, CartController in src/controllers/CartController.php activates its RateLimiter only when the number POST or GET parameter is supplied. An unauthenticated attacker can submit couponCode values to actionUpdateCart for the session-based cart while omitting number, preventing creation of the IP rate-limit identity and allowing unlimited automated coupon-code guessing and enumeration. This issue is fixed in versions 4.11.2 and 5.6.5.

Analysis

AI-generated

Technical impact

Craft Commerce's CartController applies its rate limiter only when the 'number' parameter is present in POST or GET requests. An unauthenticated attacker who omits this parameter can repeatedly submit couponCode values to the actionUpdateCart endpoint for the session-based cart, preventing the creation of the IP rate-limit identity and allowing unlimited automated coupon-code guessing and enumeration. This vulnerability, indicative of CWE‑307, is fixed in versions 4.11.2 and 5.6.5.

Affected Systems

The flaw affects Craft Commerce versions 4.0.0 through 4.11.2 and 5.6.5. The issue was fixed in releases 4.11.2 and 5.6.5. All installations using the older versions of these branches are vulnerable.

Risk and Exploitability

The CVSS score of 6.9 reflects a moderate severity and the fact that the EPSS score of < 1% indicates a very low exploitation probability, and the vulnerability is not yet listed in CISA KEV. The attack vector is remote via the web interface; authentication is not required, and the exploitation is straightforward: send successive couponCode POST requests to the cart update action. Once the limiter is bypassed, an attacker can enumerate valid coupon codes at near-zero cost.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Craft Commerce to version 4.11.2 or later (5.6.5 or newer).
  • If an immediate upgrade cannot be performed, block unauthenticated access to the cart update endpoint or enforce a CAPTCHA to thwart automated requests.
  • Configure a web application firewall or server‑level rate limiting to cap coupon code validation attempts per IP address.

Generated by OpenCVE AI on September 21, 2026 at 00:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h5gm-x9wr-vhcm Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass
History
Type Values Removed Values Added
First Time appeared Craftcms
Craftcms commerce
Vendors & Products Craftcms
Craftcms commerce
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Craft Commerce is an ecommerce platform for Craft CMS. From 4.0.0 until 4.11.2 and 5.6.5, CartController in src/controllers/CartController.php activates its RateLimiter only when the number POST or GET parameter is supplied. An unauthenticated attacker can submit couponCode values to actionUpdateCart for the session-based cart while omitting number, preventing creation of the IP rate-limit identity and allowing unlimited automated coupon-code guessing and enumeration. This issue is fixed in versions 4.11.2 and 5.6.5.
Title Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass
Weaknesses CWE-307
References
Metrics cvssV4_0

{'score': 6.9, '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

    Improper Restriction of Excessive Authentication Attempts

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 14, 2026, 8:06 PM
Reserved
Jun 17, 2026, 2:40 PM
Status
Deferred
Published
Sep 14, 2026, 4:17 PM
Modified
Sep 30, 2026, 5:51 PM