All reports
Medium

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

Affected versions

Affected versions
>= 5.0.0, <= 5.6.4
Fixed version
5.6.5
Affected versions
>= 4.0.0, <= 4.11.1
Fixed version
4.11.2

Exploitation

CVE-2026-55795

Probability of exploitation in the next 30 days: 0.51%

FIRST EPSS · 2026-11-22

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.

Links

Credits

  • gonzaless95