Skip to main content
← All vulnerabilities
CVE-2026-94462GHSA-4825-P4XM-PCF2

Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.4, 5.5.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Spree is an open source e-commerce solution built with Ruby on Rails. From 5.4.0 until 5.4.4 and 5.5.4, PATCH /api/v3/store/carts/:id/associate in Spree::Api::V3::Store::CartsController#associate uses find_cart_for_association to locate a cart by prefixed_id but does not require a cart token or otherwise verify possession of the selected guest cart. An authenticated customer can derive reversible prefixed cart IDs, associate an eligible guest cart with the attacker's account, and receive billing and shipping address data from the cart. Exploitation requires a guest cart with address data on a store that does not require login for checkout, and reassignment can also disrupt the guest's in-progress cart. This issue is fixed in versions 5.4.4 and 5.5.4.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • spree spree

    From 5.4.0 · fixed in 5.4.4; From 5.5.0 · fixed in 5.5.4

  • spree_apiRubyGems

    From 5.4.0 · fixed in 5.4.4

  • spree_apiRubyGems

    From 5.5.0 · fixed in 5.5.4

References 6

GitHub · spree/spree