NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

mediumCVSS 4.0 6.9GHSA-h5gm-x9wr-vhcm

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.

Published Jun 19, 2026

Affected packages

craftcms/commerce

Ecosystem
Composer (PHP)
Affected
>= 5.0.0, <= 5.6.4
Fixed in
5.6.5
Check
composer show craftcms/commerce

craftcms/commerce

Ecosystem
Composer (PHP)
Affected
>= 4.0.0, <= 4.11.1
Fixed in
4.11.2
Check
composer show craftcms/commerce

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to gonzaless95.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries