@payloadcms/plugin-ecommerce@3.84.0-canary.6

Ecommerce plugin for Payload

  • latest version

    3.94.1

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @payloadcms/plugin-ecommerce 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
    Improper Enforcement of a Single, Unique Action

    @payloadcms/plugin-ecommerce is an Ecommerce plugin for Payload

    Affected versions of this package are vulnerable to Improper Enforcement of a Single, Unique Action via the confirmOrder endpoint in the Stripe payment adapter, where a settlement webhook or confirmation request can be replayed, allowing an attacker to trigger multiple order finalizations for a single payment. The finalizeOrder callback lacks a guard preventing re-entry across concurrent requests, so a race condition permits duplicate order records and inventory mutations to be committed. The fix introduces a transactional compare-and-set with transient conflict recovery and a per-request didCallFinalizeOrder flag to enforce exactly-once settlement.

    Note: This is only exploitable when using the Stripe payment adapter.

    How to fix Improper Enforcement of a Single, Unique Action?

    Upgrade @payloadcms/plugin-ecommerce 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