@payloadcms/drizzle@3.59.0-internal.929dda3

A library of shared functions used by different payload database adapters

  • latest version

    3.94.2

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    2 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @payloadcms/drizzle 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/drizzle is an A library of shared functions used by different payload database adapters

    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/drizzle 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
    • M
    Overly Restrictive Account Lockout Mechanism

    @payloadcms/drizzle is an A library of shared functions used by different payload database adapters

    Affected versions of this package are vulnerable to Overly Restrictive Account Lockout Mechanism via the resetPassword operation, which fails to reset the account lockout state upon a successful password reset. An attacker who triggers repeated failed login attempts to lock an account can keep that account locked even after the legitimate user resets their password, causing a crash of the authentication flow for that user.

    How to fix Overly Restrictive Account Lockout Mechanism?

    Upgrade @payloadcms/drizzle 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
    • M
    SQL Injection

    @payloadcms/drizzle is an A library of shared functions used by different payload database adapters

    Affected versions of this package are vulnerable to SQL Injection via the endpoints accepting dynamic query for Collections. An attacker can access sensitive information or modify data by submitting specially crafted inputs that manipulate SQL query execution.

    How to fix SQL Injection?

    Upgrade @payloadcms/drizzle to version 3.79.1 or higher.

    <3.79.1
    • C
    SQL Injection

    @payloadcms/drizzle is an A library of shared functions used by different payload database adapters

    Affected versions of this package are vulnerable to SQL Injection when querying JSON or richText fields. An attacker can extract sensitive information and gain unauthorized access to user accounts by injecting crafted SQL statements.

    Note:

    This is only exploitable if a Drizzle-based database adapter is used, at least one accessible collection contains a json or richText field, and the access.read permission for those fields is not set to always return false.

    How to fix SQL Injection?

    Upgrade @payloadcms/drizzle to version 3.73.0 or higher.

    <3.73.0