
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31867 is an Insecure Direct Object Reference (IDOR) vulnerability in Craft Commerce's cart functionality that allows unauthenticated attackers to hijack any shopping cart by knowing or guessing its 32-character cart number. It affects Craft Commerce versions 4.0.0–4.11.0 and 5.0.0–5.6.0, and was disclosed on March 9, 2026. The vulnerability carries a CVSS v3.1 base score of 4.8 (Medium) and a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory).
The root cause is classified as CWE-639 (Authorization Bypass Through User-Controlled Key). In CartController.php, both actionLoadCart() (lines 374–389) and the internal _getCart() method (lines 606–616) accept a user-supplied number parameter to retrieve shopping carts, but only verify that the order exists and is incomplete — no ownership or session binding check is performed. This means any requester who supplies a valid cart number can load and potentially modify that cart. Cart numbers can be obtained via referrer header leakage, browser history, proxy/WAF logs, social engineering, or targeted brute force against recently created carts (GitHub Advisory, GitHub PR).
Successful exploitation allows an attacker to hijack another user's active shopping session, gaining access to personally identifiable information (PII) stored in the cart such as billing/shipping addresses and email addresses. The attacker can also modify the victim's cart contents or disrupt the shopping session, impacting both confidentiality and availability of the cart data. The scope is limited to the Craft Commerce application layer and does not directly enable lateral movement to underlying infrastructure (GitHub Advisory).
No weaponized exploit or active in-the-wild exploitation has been reported. The GitHub Security Advisory includes source code snippets for analysis but no concrete exploit steps or crafted request payloads (GitHub Advisory). The EPSS score is approximately 0.041% (22nd percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
commerce/cart/load-cart endpoint with the number parameter set to the victim's cart number (e.g., GET /actions/commerce/cart/load-cart?number=<32-char-hex>).CartController::actionLoadCart() method loads the cart into the attacker's session without any ownership validation, granting full access to the victim's cart contents, PII, and the ability to modify or complete the order (GitHub Advisory)./actions/commerce/cart/load-cart or similar cart endpoints with number parameters not associated with the requesting user's session; requests originating from IPs inconsistent with the cart owner's session history.commerce/cart/load-cart where the number parameter differs from any cart previously associated with that session.Upgrade Craft Commerce to version 4.11.0 (for the 4.x branch) or 5.6.0 (for the 5.x branch), which introduce token-based security for cart loading. The fix adds Craft's built-in cryptographic token system to generate time-limited, one-use cart load URLs; carts with email addresses or billing/shipping data now require a valid token or authenticated ownership before loading. A new cartLoadUrlExpiry setting (default: 7 days) controls token validity. No configuration-only workaround is available for unpatched versions — upgrading is the only remediation (GitHub Advisory, GitHub PR).
The vulnerability was reported by security researchers rlarabee and RajChowdhury240 and published by angrybrad on March 9, 2026. The fix was developed by the Craft CMS core team (lukeholder) and merged on June 3, 2026. No significant broader media coverage or notable public commentary beyond the GitHub advisory and pull request discussion has been identified (GitHub Advisory, GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."