Skip to main content
VulnerabilityPublished

CVE-2026-31867: craftcms commerce · Insecure Direct Object Reference

Affects craftcms commerceSource CVE Database V5

0

Not known to be exploited · CVSS 6.3 Medium : upgrade to 5.6.0 or 4.11.0 when convenient.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.6.0, 4.11.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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade commerce and craftcms/commerce to 5.6.0 or 4.11.0.

Affected software

ProductAffectedFixed in
craftcmscommerceAffected
  • >=5.0.0 <5.6.0
Fixed in
  • 5.6.0
craftcmscommerceAffected
  • >=4.0.0 <4.11.0
Fixed in
  • 4.11.0
GitHubcraftcms/commercepkg:github/craftcms/commerceOther threatsAffected
  • <4.11.0
  • <5.6.0
Fixed in
  • 4.11.0
  • 5.6.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations using Craft Commerce should immediately upgrade to versions 4.11.0 or 5.6.0 or later, where the vulnerability is patched. Until upgrades can be applied, implement strict access controls and monitoring on the CartController endpoints to detect and block suspicious requests with unusual cart number patterns. Employ rate limiting and anomaly detection to prevent brute-force guessing of cart numbers. Review and enhance logging to capture unauthorized access attempts for forensic analysis. Consider additional application-layer protections such as web application firewalls (WAFs) configured to identify and block exploitation attempts targeting cart manipulation. Conduct thorough audits of customer data access controls and ensure minimal PII is stored in shopping carts. Finally, educate development teams on secure coding practices to validate ownership and authorization for sensitive operations.

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.

References

Community reviews

Loading reviews…