CVE-2026-31867 Craft Commerce has a Potential IDOR in Commerce carts

Medium 6.3 Published Updated

Attackers can hijack shopping carts and access PII by guessing cart IDs due to missing ownership validation in Craft Commerce.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-31867?

CVE-2026-31867 is a medium-severity missing authorization vulnerability in craftcms commerce, published on 11 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-639

Which versions are affected by CVE-2026-31867?

4 open source packages ship an affected version, including craftcms/commerce. It affects 1 product.

PackageAffectedFixed in
craftcms/commerce PackagistFrom 4.0.04.11.0
craftcms/commerce PackagistFrom 4.0.04.11.0
craftcms/commerce PackagistFrom 5.0.05.6.0
craftcms/commerce PackagistFrom 5.0.05.6.0

Products include Craftcms Craft Commerce.

How do I fix CVE-2026-31867?

Upgrade craftcms/commerce to a fixed version for your release line: 4.11.0 or 5.6.0.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-31867 being exploited?

There is no known exploitation of CVE-2026-31867 in the wild and no public exploit code.

Sources

Also known as GHSA-vff3-pqq8-4cpq.

Is CVE-2026-31867 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free