@payloadcms/plugin-stripe@3.89.0

Stripe plugin for Payload

  • latest version

    3.91.0

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @payloadcms/plugin-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
    • M
    Missing Authorization

    @payloadcms/plugin-stripe is a Stripe plugin for Payload

    Affected versions of this package are vulnerable to Missing Authorization via the Stripe REST proxy endpoint (packages/plugin-stripe/src/routes/rest.ts), which previously defaulted to enabled and applied only a logged-in user check (Forbidden) rather than enforcing admin-level access controls. An authenticated non-admin user can invoke arbitrary Stripe API methods through the proxy, potentially reading or modifying Stripe resources (such as customers, subscriptions, and payment methods) that should be restricted to administrators. The fix introduces a configurable access function on the REST config, defaulting to an admin-only check, and changes the default for the rest option from true to a sanitized config object that enforces this stricter gate.

    How to fix Missing Authorization?

    Upgrade @payloadcms/plugin-stripe to version 3.90.0, 4.0.0-canary.34 or higher.

    <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34