Medium severity · published Mar 11, 2026
CVE-2026-31867
Craft Commerce has a Potential IDOR in Commerce carts
4.8
CVSS
0.3%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 21% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
commerce · craftcms
>= 4.0.0, < 4.11.0; >= 5.0.0, < 5.6.0 · source: vendor
CC
Craft Commerce · Craftcms
4.0.0 before 4.11.0; 5.0.0 before 5.6.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-31867
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-31867
Issue Tracking
https://github.com/craftcms/commerce/pull/4207
Exploit
https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq
More from commerce
8.8
CVE-2026-29174
Craft Commerce has a SQL Injection in Commerce Inventory Table Sorting
8.8
CVE-2026-29172
Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting
8.7
CVE-2026-32272
Craft Commerce: Blind SQL Injection via hasVariant/hasProduct
7.7
CVE-2026-32271
Craft Commerce: SQL Injection can lead to Remote Code Execution via TotalRevenue Widget
6.9
CVE-2026-55795
Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass
