VYPR
Moderate severityGHSA Advisory· Published Jun 19, 2026

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

CVE-2026-55795

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
craftcms/commercePackagist
>= 5.0.0, < 5.6.55.6.5
craftcms/commercePackagist
>= 4.0.0, < 4.11.24.11.2

Affected products

1

Patches

Vulnerability mechanics

References

3

News mentions

1