GHSA-h3rm-78g3-j7cp
### Am I affected? You are affected if all of these are true: - You use `@better-auth/stripe` from version 1.4.11 up to a patched version below. This covers the stable line through 1.6.20 and every 1.7.0 beta through 1.7.0-beta.9. - The Stripe plugin has subscriptions turned on (`subscription.enabled: true`). - Organization subscriptions are turned on (`organization.enabled: true`) and you have set an `authorizeReference` callback. - A user can join more than one org. So a user can be a member of an org whose billing they should not manage. You are not affected if you only use user subscriptions. You are also not affected if org subscriptions are turned off. ### Summary An org subscription action can run against the wrong org. The actions are cancel, change plan, restore, and open the billing portal. The plugin checks permission against the org id in the request query string. It then runs the action against the caller's active org from their session. When these two ids differ, a member can act on billing for an org they may not manage. The target is always an org the caller belongs to. ### Details The plugin runs two steps for each org subscription action. First, a middleware decides if the caller may use the requested org. It reads the org id from the request body or the query string. It then passes that id to your `authorizeReference` callback. Second, the route handler runs the action. The handler reads the org id from the request body only. It falls back to the active org in the session when the body has no id. The gap is the query string. A caller puts an org they may manage in the query string. The middleware approves that org. The handler ignores the query string. It finds no id in the body, so it acts on the caller's active org instead. The check and the action no longer agree. ### Patches Upgrade to one of these patched versions: - Stable: `@better-auth/[email protected]` or later. - Beta: `@better-auth/[email protected]` or later. The fix resolv
Properties
- ghsa_id
- GHSA-h3rm-78g3-j7cp
- severity
- high
- summary
- @better-auth/stripe: cross-organization billing tampering in organization subscription actions
- cvss_score
- 7.1
- cve_id
- GHSA-h3rm-78g3-j7cp
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
- is_ghsa_only
- true
- ghsa_published
- 2026-07-24T15:43:22Z
- source_url
- https://github.com/advisories/GHSA-h3rm-78g3-j7cp
- ghsa_updated
- 2026-07-24T15:43:25Z
Related Entities (5)
VULNERABLE_TO (1)
AFFECTS (1)
HAS_WEAKNESS (2)
REPORTED_BY (1)
Explore deeper with Ninja Signal's threat intelligence graph