Intel

AIKIDO-2026-777394

spree_api is vulnerable to Insecure Direct Object Reference (IDOR)

Insecure Direct Object Reference (IDOR)GHSA-4825-p4xm-pcf2 Published Jul 22, 2026

71

High Risk

This Affects:

RUBYspree_api
5.4.0 - 5.4.3
Fixed in 5.4.4
5.5.0 - 5.5.3
Fixed in 5.5.4
Are you affected? Scan for Free

TL;DR

The Store API v3 cart associate endpoint in spree_api binds a guest cart to the authenticated caller without verifying possession of that cart. It locates the cart by a reversible prefixed identifier and skips the authorize! cart-token check that its sibling actions enforce. An authenticated low-privilege customer can enumerate guest cart identifiers, take over arbitrary guest carts, and read the checkout addresses stored on them. The fix requires a valid cart token header and returns a 403 when it is missing or does not match the cart.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your store is not running in login-required mode.

Background info

spree_api is vulnerable to Insecure Direct Object Reference (IDOR) in versions 5.4.0 - 5.4.3 and 5.5.0 - 5.5.3.

How to fix this

Upgrade the spree_api library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform