CVE-2026-32270: Craftcms/commerce Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-3vxg-x5f8-f5qf
CWE-862 CWE-200
Published
Advisory Summary

CVE-2026-32270 is a LOW remote code execution vulnerability (CWE-862: Missing Authorization) affecting Craftcms/commerce libraries in the Packagist ecosystem. The issue involves craft commerce has an unauthenticated information disclosure that can leak some customer order data on anonymous payments. Remediation is available by upgrading affected packages to version 5.6.0, 4.11.0.

CVE-2026-32270 at a Glance

CVE Identifier CVE-2026-32270
GHSA Identifier GHSA-3vxg-x5f8-f5qf
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-862: Missing Authorization
Affected Product Craftcms/commerce
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-32270

To remediate this vulnerability, upgrade all affected Craftcms/commerce dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

craftcms/commerce fixed: 5.6.0
Upgrade craftcms/commerce to 5.6.0
craftcms/commerce fixed: 4.11.0
Upgrade craftcms/commerce to 4.11.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for craftcms/commerce

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-32270, inspect your project dependencies for Craftcms/commerce:

inspect dependencies for craftcms/commerce

Analyze the terminal output to locate any version of Craftcms/commerce in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Craftcms/commerce, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary `PaymentsController::actionPay` discloses some order data to unauthenticated users when an order number is provided and the email check fails during an anonymous payment. The JSON error response includes the serialized order object (`order`), which contains some sensitive fields such as customer email, shipping address, and billing address. ### Details I manually audited frontend payment flows and found that `actionPay()` retrieves orders by number before authorization is fully enforced. Code path: 1. Load order by `number`. 2. Evaluate whether payment is authorized for completed orders (`number + matching email`). 3. If unauthorized, return failure. 4. Failure response still includes `cartArray($order)`, which serializes sensitive order data. Why is this a vulnerability? - Authorization logic says the requester is not allowed to pay for a completed order without an email. - But the response still returns the same completed order’s contents. ### Impact Type: Information Disclosure / Broken Access Control Who is impacted: - Any Commerce deployment where completed order numbers can be obtained or leaked.

CVE-2026-32270 Affected Craftcms/commerce Versions

2 component(s)
Fixed Versions:
5.6.04.11.0
Product / Package Ecosystem Affected Versions Fixed Version
craftcms/commerce
Packagist
≥ 5.0.0
< 5.6.0
5.6.0
craftcms/commerce
Packagist
≥ 4.0.0
< 4.11.0
4.11.0

References

Frequently Asked Questions

What is CVE-2026-32270?
CVE-2026-32270 is a security vulnerability in Craftcms/commerce involving Craft Commerce has an unauthenticated information disclosure that can leak some customer order data on anonymous payments under CWE-862: Missing Authorization.
Which Craftcms/commerce versions are affected?
Affected versions include releases prior to 5.6.0, 4.11.0 across affected packages: craftcms/commerce.
What version fixes CVE-2026-32270?
Upgrading to 5.6.0, 4.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is craftcms/commerce affected?
Yes, craftcms/commerce is affected in releases prior to 5.6.0, 4.11.0. Upgrade your dependency to 5.6.0, 4.11.0 or later.
What CWE is associated with CVE-2026-32270?
CVE-2026-32270 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Packagist dependencies for CVE-2026-32270?
Run the dependency tree command: 'inspect dependencies for craftcms/commerce'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3vxg-x5f8-f5qf",
  "modified" : "2026-04-14T01:01:17Z",
  "published" : "2026-04-14T01:01:17Z",
  "aliases" : [ "CVE-2026-32270" ],
  "summary" : "Craft Commerce has an unauthenticated information disclosure that can leak some customer order data on anonymous payments",
  "details" : "### Summary\n\n`PaymentsController::actionPay` discloses some order data to unauthenticated users when an order number is provided and the email check fails during an anonymous payment.\n\nThe JSON error response includes the serialized order object (`order`), which contains some sensitive fields such as customer email, shipping address, and billing address.\n\n### Details\n\nI manually audited frontend payment flows and found that `actionPay()` retrieves orders by number before authorization is fully enforced.\n\nCode path:\n\n1. Load order by `number`.\n2. Evaluate whether payment is authorized for completed orders (`number + matching email`).\n3. If unauthorized, return failure.\n4. Failure response still includes `cartArray($order)`, which serializes sensitive order data.\n\nWhy is this a vulnerability?\n\n- Authorization logic says the requester is not allowed to pay for a completed order without an email.\n- But the response still returns the same completed order’s contents.\n\n### Impact\n\nType: Information Disclosure / Broken Access Control\n\nWho is impacted:\n\n- Any Commerce deployment where completed order numbers can be obtained or leaked.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/commerce"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.6.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.5.4"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/commerce"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.11.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.10.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/commerce/security/advisories/GHSA-3vxg-x5f8-f5qf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32270"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/commerce/commit/48a5d946419964e2af1ac64a8e1acc2a32ca0a08"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/craftcms/commerce"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/commerce/releases/tag/4.11.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/commerce/releases/tag/5.6.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-862" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-14T01:01:17Z",
    "nvd_published_at" : "2026-04-13T20:16:33Z"
  }
}