CVE-2026-31867
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
craftcms/commercePackagist | >= 5.0.0, < 5.6.0 | 5.6.0 |
craftcms/commercePackagist | >= 4.0.0, < 4.11.0 | 4.11.0 |
Affected products
3- cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:*Range: >=4.0.0,<4.11.0
Patches
Vulnerability mechanics
References
4- github.com/craftcms/commerce/pull/4207nvdIssue TrackingPatchWEB
- github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpqnvdExploitPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-vff3-pqq8-4cpqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-31867ghsaADVISORY
News mentions
0No linked articles in our index yet.