# GHSA-G82M-W3M9-RRWH: Guest token fixation in Solidus Storefront enables cart takeover and order data disclosure

- Database: GitHub
- Severity: CVSS 7.1 (High)
- Published: 2026-09-09
- Modified: 2026-09-09

## Affected versions

- solidus\_storefront (RubyGems): all
- solidus\_starter\_frontend (RubyGems): all

## Description

### Impact

The controllers that the Solidus Storefront (previous Solidus Starter Frontend) generates into a store (`OrdersController`, `CartsController`, `CartLineItemsController`) write the `token` request parameter directly into the permanent signed `guest_token` cookie without any verification:

```ruby
before_action :store_guest_token

def store_guest_token
  cookies.permanent.signed[:guest_token] = params[:token] if params[:token]
end
```

The `guest_token` cookie identifies a guest's cart and authorizes access to their orders. Because any visitor can obtain a valid token by starting a guest order, an attacker can craft a link to the storefront with `?token=` set to their own order's token (or use the `/orders/:number/token/:token` URL). When a victim clicks it, their browser's guest identity is silently replaced with the attacker's. As a result:

* the victim's current cart is rebound to the attacker's order, and
* every guest order the victim subsequently places in that browser is created with the attacker's token, allowing the attacker to view the order — including name, email, shipping and billing addresses, and phone number — via the order status page.

The fixation persists until the victim clears their cookies. Logged-in customers are not affected; only guest carts and guest orders are exposed.

All storefronts generated by `solidus:install` since Solidus 3.2 contain this code.

### Patches

The storefront generator templates are fixed in Solidus, so new stores will get the patched code. The tokenized order URL still works: `OrdersController#show` now authorizes the individual request against `params[:token]` without ever writing it to the cookie.

**Upgrading the Solidus gem does not fix existing stores.** The vulnerable code was copied into your application when the storefront was generated, so every existing store must patch its own controllers. The fix is in the Workarounds section below.

### Workarounds

In your application, edit `app/controllers/orders_controller.rb`, `app/controllers/carts_controller.rb`, and `app/controllers/cart_line_items_controller.rb`:

1. Delete the `before_action :store_guest_token` line and the `store_guest_token` method from all three controllers.
2. In `OrdersController#show`, authorize against the request token instead of the cookie:

```ruby
def show
  @order = Spree::Order.find_by!(number: params[:id])
  authorize! :show, @order, params[:token] || cookies.signed[:guest_token]
end
```

No other `authorize!` calls need to change. If your store has customized these controllers, the essential points are that `params[:token]` must never be persisted to the `guest_token` cookie, and that tokenized order links are authorized per-request from the parameter.

These changes apply to any Solidus version; you do not need to upgrade first.

### Credits

[iammax0](https://hackerone.com/iammax0)

## References

- https://github.com/solidusio/solidus/security/advisories/GHSA-g82m-w3m9-rrwh

Page: https://cve.now/GHSA-G82M-W3M9-RRWH

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
