Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/commerce
  4. ›
  5. CVE-2026-31867

CVE-2026-31867: Craft Commerce: Potential IDOR in Commerce carts

March 10, 2026 (updated March 11, 2026)

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. This vulnerability enables the takeover of shopping sessions and potential exposure of PII.

References

  • github.com/advisories/GHSA-vff3-pqq8-4cpq
  • github.com/craftcms/commerce
  • github.com/craftcms/commerce/pull/4207
  • github.com/craftcms/commerce/security/advisories/GHSA-vff3-pqq8-4cpq
  • nvd.nist.gov/vuln/detail/CVE-2026-31867

Code Behaviors & Features

Detect and mitigate CVE-2026-31867 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.11.0, all versions starting from 5.0.0 before 5.6.0

Fixed versions

  • 5.6.0
  • 4.11.0

Solution

Upgrade to versions 4.11.0, 5.6.0 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

packagist/craftcms/commerce/CVE-2026-31867.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:18:56 +0000.