Auth bypass in Craftcms Commerce
CVE-2026-31867
Craft Commerce is an ecommerce platform for Craft CMS. Prior to 4.11.0 and 5.6.0, An Insecure Direct Object Reference (IDOR) vulnerability exists in Craft Commerce’s cart functionality that allows users to hijack any shopping cart by knowing or guessing its 32-character number. The CartController accepts a user-supplied number parameter to load and modify shopping carts. No ownership validation is performed - the code only checks if the order exists and is incomplete, not whether the requester has authorization to access it. This vulnerability enables the takeover of shopping sessions and potential exposure of PII. This vulnerability is fixed in 4.11.0 and 5.6.0.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L.
EPSS exploit prediction
EPSS 0.003, 25.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Craftcms Commerce — versions >= 4.0.0, < 4.11.0, >= 5.0.0, < 5.6.0
- Craftcms Craft Commerce
Weakness classification (CWE)
References
- https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq (Exploit, Patch, Vendor Advisory)
- https://github.com/craftcms/commerce/pull/4207 (Patch, Issue Tracking)