RubySec

Providing security resources for the Ruby community

CVE-2026-22588 (spree_api): Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification

ADVISORIES

GEM

spree_api

SEVERITY

CVSS v3.x: 6.5 (Medium)

UNAFFECTED VERSIONS

  • < 3.7.0

PATCHED VERSIONS

  • ~> 4.10.2
  • ~> 5.0.7
  • ~> 5.1.9
  • >= 5.2.5

DESCRIPTION

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.

See reference below for POC.

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"

RELATED