@payloadcms/db-mongodb@4.0.0-canary.21

The officially supported MongoDB database adapter for Payload

  • latest version

    3.90.2

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    21 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @payloadcms/db-mongodb 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/db-mongodb is a The officially supported MongoDB database adapter for Payload

    Affected versions of this package are vulnerable to Missing Authorization via the contains query operator on relationship, upload, and join fields, where access control filters injected for a related collection are not scoped to the same document as the user's filter. An unauthenticated remote attacker can craft a nested contains query that causes the access constraint and the user-supplied filter to resolve against different related documents, allowing the attacker to read data from related collections that should be restricted by access control rules.

    How to fix Missing Authorization?

    Upgrade @payloadcms/db-mongodb 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