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.
References
| Link | Resource |
|---|---|
| https://github.com/craftcms/commerce/pull/4207 | Issue Tracking Patch |
| https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq | Patch Vendor Advisory Exploit |
Configurations
Configuration 1 (hide)
|
History
17 Mar 2026, 14:02
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Craftcms
Craftcms craft Commerce |
|
| References | () https://github.com/craftcms/commerce/pull/4207 - Issue Tracking, Patch | |
| References | () https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq - Patch, Vendor Advisory, Exploit | |
| Summary |
|
|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 4.8 |
| CPE | cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:* |
11 Mar 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-03-11 18:16
Updated : 2026-03-17 14:02
NVD link : CVE-2026-31867
Mitre link : CVE-2026-31867
CVE.ORG link : CVE-2026-31867
JSON object : View
Products Affected
craftcms
- craft_commerce
CWE
CWE-639
Authorization Bypass Through User-Controlled Key
