{"id":"CVE-2026-31867","published":"2026-03-11T17:52:18Z","modified":"2026-03-12T13:49:48Z","title":"Craft Commerce has a Potential IDOR in Commerce carts","vendor":"Craft CMS","product":"commerce","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.22627,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/commerce/pull/4207","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"commerce","versions":[">= 4.0.0, < 4.11.0",">= 5.0.0, < 5.6.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-12T13:49:40.560500Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/commerce","vulnerableRanges":[">=5.0.0, <5.6.0",">=4.0.0, <4.11.0"],"patched":["5.6.0","4.11.0"],"from":["GHSA-vff3-pqq8-4cpq"],"provenance":"source"}],"summary":{"text":"The Commerce plugin for Craft CMS, in its cart functionality (the CartController), fails to verify that a requester owns a shopping cart before loading or modifying it, so anyone who knows or guesses a cart's 32-character number can take it over. An unauthenticated remote attacker can exploit this without user interaction, needing only the target cart's number, and the result is takeover of the shopping session and potential exposure of personal information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:42Z"},"euvd":{"id":"EUVD-2026-11271","exploited":false,"provenance":"source"}}