CVE-2026-31867

Medium

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.

SeverityMedium
CVSS4.8
Exploit probability—
ProductCraftcms Craft Commerce
PublishedMar 11, 2026
First seenMar 11, 2026

How to fix

Update
  • craftcms craft_commerce4.11.0, 5.6.0 or later
  • craftcms/commerce5.6.0, 4.11.0 or later

Affected products

ProductAffected versionsFixed in
craftcms craft_commerce4.0.0 ≤ v < 4.11.0, 5.0.0 ≤ v < 5.6.04.11.0, 5.6.0
craftcms/commercePackagist5.0.0 ≤ v < 5.6.0, 4.0.0 ≤ v < 4.11.05.6.0, 4.11.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.