CVE-2026-25757: Spree storefront Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-p6pv-q7rc-g4h9
CWE-639
Published
Advisory Summary

CVE-2026-25757 is a HIGH remote code execution vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Spree storefront libraries in the RubyGems ecosystem. The issue involves unauthenticated spree commerce users can view completed guest orders by order id. Remediation is available by upgrading affected packages to version 5.0.8, 5.1.10, 5.2.7, 5.3.2.

CVE-2026-25757 at a Glance

CVE Identifier CVE-2026-25757
GHSA Identifier GHSA-p6pv-q7rc-g4h9
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Spree storefront
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2026-25757

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

spree_storefront fixed: 5.0.8
Upgrade spree_storefront to 5.0.8
spree_storefront fixed: 5.1.10
Upgrade spree_storefront to 5.1.10
spree_storefront fixed: 5.2.7
Upgrade spree_storefront to 5.2.7
spree_storefront fixed: 5.3.2
Upgrade spree_storefront to 5.3.2
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 spree_storefront

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-25757, inspect your project dependencies for Spree storefront:

inspect dependencies for spree_storefront

Analyze the terminal output to locate any version of Spree storefront in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.8), 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Spree storefront, 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

### Unauthenticated users can view completed guest orders by Order ID (`GHSL-2026-029`) The `OrdersController#show` action permits viewing completed guest orders by order number alone, without requiring the associated order token. Order lookup without enforcing token requirement in [`OrdersController#show`](https://github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/storefront/app/controllers/spree/orders_controller.rb#L14): ```ruby @order = complete_order_finder.new(number: params[:id], token: params[:token], store: current_store).execute.first ``` Authorization bypass for guest orders in [`authorize_access`](https://github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/storefront/app/controllers/spree/orders_controller.rb#L51C1-L55C8): ```ruby def authorize_access return true if @order.user_id.nil? @order.user == try_spree_current_user end ``` If the attacker is in possession of a leaked Order ID, they might look it up directly via this API. Alternatively, brute forcing all or parts of the possible Order IDs might be feasible for an attacker. (The Order IDs themselves are [securely generated](https://github.com/spree/spree/blob/a878eb4a782ce0445d218ea86fb12075b0e3d7cc/core/lib/spree/core/number_generator.rb#L45), but with relatively low entropy: by default an order ID has a length of 9 and a base of 10, that would require an attacker to perform 1 billion requests to gather all guest orders. (At an assumed constant rate of 100 requests per second it would take 115 days.) #### Proof of Concept 1. As a guest create a complete order. 2. Fetch the latest Order ID from the database (Table: `spree_orders`). 3. In another clean browser access following URL: `<SPREE-HOST>/orders/<ORDER-ID>`. (Sample: `http://localhost:3000/orders/R496592563`) => Full guest order details are disclosed including names, addresses and limited payment info. #### Impact This issue may lead to disclosure of PII of guest users (including names, addresses and phone numbers). #### CWEs - CWE-639: Authorization Bypass Through User-Controlled Key ### Credit This issue was discovered with the [GitHub Security Lab Taskflow Agent](https://github.com/GitHubSecurityLab/seclab-taskflow-agent) and manually verified by GHSL team members [@p- (Peter Stöckli)](https://github.com/p-) and [@m-y-mo (Man Yue Mo)](https://github.com/m-y-mo). ### Disclosure Policy This report is subject to a 90-day disclosure deadline, as described in more detail in our [coordinated disclosure policy](https://securitylab.github.com/advisories#policy).

CVE-2026-25757 Affected Spree storefront Versions

4 component(s)
Fixed Versions:
5.0.85.1.105.2.75.3.2
Product / Package Ecosystem Affected Versions Fixed Version
spree_storefront
RubyGems
< 5.0.8
5.0.8
spree_storefront
RubyGems
≥ 5.1.0
< 5.1.10
5.1.10
spree_storefront
RubyGems
≥ 5.2.0
< 5.2.7
5.2.7
spree_storefront
RubyGems
≥ 5.3.0
< 5.3.2
5.3.2

References

Frequently Asked Questions

What is CVE-2026-25757?
CVE-2026-25757 is a security vulnerability in Spree storefront involving Unauthenticated Spree Commerce users can view completed guest orders by Order ID under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Spree storefront versions are affected?
Affected versions include releases prior to 5.0.8, 5.1.10, 5.2.7, 5.3.2 across affected packages: spree_storefront.
What version fixes CVE-2026-25757?
Upgrading to 5.0.8, 5.1.10, 5.2.7, 5.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spree_storefront affected?
Yes, spree_storefront is affected in releases prior to 5.0.8, 5.1.10, 5.2.7, 5.3.2. Upgrade your dependency to 5.0.8, 5.1.10, 5.2.7, 5.3.2 or later.
What CWE is associated with CVE-2026-25757?
CVE-2026-25757 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check RubyGems dependencies for CVE-2026-25757?
Run the dependency tree command: 'inspect dependencies for spree_storefront'. 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-p6pv-q7rc-g4h9",
  "modified" : "2026-02-13T17:16:21Z",
  "published" : "2026-02-05T21:13:24Z",
  "aliases" : [ "CVE-2026-25757" ],
  "summary" : "Unauthenticated Spree Commerce users can view completed guest orders by Order ID",
  "details" : "### Unauthenticated users can view completed guest orders by Order ID (`GHSL-2026-029`)\n\nThe `OrdersController#show` action permits viewing completed guest orders by order number alone, without requiring the associated order token.\n\nOrder lookup without enforcing token requirement in [`OrdersController#show`](https://github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/storefront/app/controllers/spree/orders_controller.rb#L14):\n\n```ruby\n@order = complete_order_finder.new(number: params[:id], token: params[:token], store: current_store).execute.first\n```\n\nAuthorization bypass for guest orders in [`authorize_access`](https://github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/storefront/app/controllers/spree/orders_controller.rb#L51C1-L55C8):\n```ruby\ndef authorize_access\n  return true if @order.user_id.nil?\n\n  @order.user == try_spree_current_user\nend\n```\n\nIf the attacker is in possession of a leaked Order ID, they might look it up directly via this API.\nAlternatively, brute forcing all or parts of the possible Order IDs might be feasible for an attacker. (The Order IDs themselves are [securely generated](https://github.com/spree/spree/blob/a878eb4a782ce0445d218ea86fb12075b0e3d7cc/core/lib/spree/core/number_generator.rb#L45), but with relatively low entropy: by default an order ID has a length of 9 and a base of 10, that would require an attacker to perform 1 billion requests to gather all guest orders. (At an assumed constant rate of 100 requests per second it would take 115 days.)\n\n\n#### Proof of Concept\n\n1. As a guest create a complete order.\n2. Fetch the latest Order ID from the database (Table: `spree_orders`).\n3. In another clean browser access following URL: `<SPREE-HOST>/orders/<ORDER-ID>`. (Sample: `http://localhost:3000/orders/R496592563`)\n\n=> Full guest order details are disclosed including names, addresses and limited payment info.\n\n#### Impact\n\nThis issue may lead to disclosure of PII of guest users (including names, addresses and phone numbers).\n\n#### CWEs\n\n- CWE-639: Authorization Bypass Through User-Controlled Key\n\n### Credit\n\nThis issue was discovered with the [GitHub Security Lab Taskflow Agent](https://github.com/GitHubSecurityLab/seclab-taskflow-agent) and manually verified by GHSL team members [@p- (Peter Stöckli)](https://github.com/p-) and [@m-y-mo (Man Yue Mo)](https://github.com/m-y-mo).\n\n### Disclosure Policy\n\nThis report is subject to a 90-day disclosure deadline, as described in more detail in our [coordinated disclosure policy](https://securitylab.github.com/advisories#policy).",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree_storefront"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree_storefront"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.1.0"
      }, {
        "fixed" : "5.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree_storefront"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.2.0"
      }, {
        "fixed" : "5.2.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree_storefront"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.3.0"
      }, {
        "fixed" : "5.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/security/advisories/GHSA-p6pv-q7rc-g4h9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25757"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/commit/3e00be64c128ef4bd4b99731f0c3ab469509cfab"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/commit/6b32ed7d474aa55fa441990e6aa39740152aa1be"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/commit/6f6b8a7a28a8bff24a6e20eab04b4bbbdf39384d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/commit/ea4a5db590ca753dbc986f2a4e818d9e0edfb1ad"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_storefront/CVE-2026-25757.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spree/spree"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/storefront/app/controllers/spree/orders_controller.rb#L14"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/storefront/app/controllers/spree/orders_controller.rb#L51C1-L55C8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/blob/a878eb4a782ce0445d218ea86fb12075b0e3d7cc/core/lib/spree/core/number_generator.rb#L45"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-05T21:13:24Z",
    "nvd_published_at" : "2026-02-06T23:15:54Z"
  }
}