CVE-2026-31867
MEDIUM 6.3CVSS 4.0Craft Commerce: Potential IDOR in Commerce carts
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.
- Published
- 11 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-639
- Also known as
- GHSA-vff3-pqq8-4cpq
- Sources
- NVDJSONOSV GHSA-vff3-pqq8-4cpqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | craftcms | craft_commercecpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:* |
>= 4.0.0, < 4.11.0 | 4.11.0 |
| NVD | craftcms | craft_commercecpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:* |
>= 5.0.0, < 5.6.0 | 5.6.0 |
| OSV | Packagist | craftcms/commerce | >= 5.0.0, < 5.6.0 | 5.6.0 |
| OSV | Packagist | craftcms/commerce | >= 4.0.0, < 4.11.0 | 4.11.0 |
References
- https://github.com/craftcms/commerce/pull/4207 · Issue Tracking, Patch, WEB
- https://github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq · Exploit, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31867 · ADVISORY
- https://github.com/craftcms/commerce · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 11 Mar 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 Mar 2026)