@better-auth/stripe@1.7.0-beta.4

Stripe plugin for Better Auth

  • latest version

    1.6.25

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    11 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @better-auth/stripe package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Incorrect Authorization

    @better-auth/stripe is a Stripe plugin for Better Auth

    Affected versions of this package are vulnerable to Incorrect Authorization through the handling of organization subscription actions when the authorizeReference callback is used and both subscription.enabled and organization.enabled are set to true. An attacker can perform unauthorized billing actions on organizations they are a member of, such as canceling subscriptions, changing plans, restoring subscriptions, or accessing billing details, by manipulating the organization ID in the request query string to mismatch the active organization in their session. This is only exploitable if organization subscriptions are enabled, the authorizeReference callback is set, and users can join multiple organizations.

    How to fix Incorrect Authorization?

    Upgrade @better-auth/stripe to version 1.6.21, 1.7.0-beta.10 or higher.

    >=1.4.11 <1.6.21>=1.7.0-beta.0 <1.7.0-beta.10