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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-10T18:24:49.000Z
- Modified: 2026-06-17T10:34:39.777Z
- Also known as: GHSA-vff3-pqq8-4cpq
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- craftcms commerce: >= 4.0.0, < 4.11.0; >= 5.0.0, < 5.6.0
- craftcms/commerce (Packagist): from 5.0.0 before 5.6.0; from 4.0.0 before 4.11.0
- craftcms craft_commerce: from 4.0.0 before 4.11.0; from 5.0.0 before 5.6.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L`

## References

- <https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq> (exploit, patch, vendor-advisory, web)
- <https://github.com/craftcms/commerce/pull/4207> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31867> (advisory)
- <https://github.com/craftcms/commerce> (package)

## Sources

- CVE List: [CVE-2026-31867](https://www.cve.org/CVERecord?id=CVE-2026-31867), CVE Terms of Use, modified 2026-03-12
- GitHub Advisory Database: [GHSA-vff3-pqq8-4cpq](https://github.com/advisories/GHSA-vff3-pqq8-4cpq), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2026-31867](https://nvd.nist.gov/vuln/detail/CVE-2026-31867), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31867 · Whole record: https://cve.day/CVE-2026-31867.json · Rebuilt by cve.day 2026-11-25T22:59:15.760Z
