Intel

AIKIDO-2026-777394

spree_api is vulnerable to Insecure Direct Object Reference (IDOR)

CVE-2026-94462Published Jul 22, 2026
July 22, 2026

71

CVE Score

High

Insecure Direct Object Reference (IDOR)

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.

How do I fix this?

Upgrade the spree_api library to the patch version.

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.

Package

Versions

5.4.0 - 5.4.3

Fixed in 5.4.4

5.5.0 - 5.5.3

Fixed in 5.5.4

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea