GHSA-xx6w-jxg9-2wh8

Suggest an improvement
Source
https://github.com/advisories/GHSA-xx6w-jxg9-2wh8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-xx6w-jxg9-2wh8/GHSA-xx6w-jxg9-2wh8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xx6w-jxg9-2wh8
Aliases
Published
2026-02-05T20:51:38Z
Modified
2026-02-07T00:53:39Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
@payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters
Details

Impact

When querying JSON or richText fields, user input was directly embedded into SQL without escaping, enabling blind SQL Injection attacks. An unauthenticated attacker could extract sensitive data (emails, password reset tokens) and achieve full account takeover without password cracking.

Users are affected if ALL of these are true:

  1. Payload version < v3.73.0
  2. Using a Drizzle-based database adapter (@payloadcms/drizzle as dependency):
    • @payloadcms/db-postgres
    • @payloadcms/db-vercel-postgres
    • @payloadcms/db-sqlite
    • @payloadcms/db-d1-sqlite
  3. At least one accessible collection that has a type: 'json' or type: 'richText' field where access.read returns anything other than false (true or Where constraint)

Users are NOT affected if:

  • Using @payloadcms/db-mongodb
  • No JSON or richText fields exist in any collection
  • All JSON/richText fields have access: { read: () => false }

Patches

Upgrade to Payload v3.73.0 or later.

Workarounds

If a project cannot upgrade immediately, add access: { read: () => false } to all JSON and richText fields as a temporary mitigation.

Database specific
{
    "cwe_ids":  [
        "CWE-89"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-05T20:51:38Z",
    "nvd_published_at":  "2026-02-06T22:16:11Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / @payloadcms/drizzle

Package

Name
@payloadcms/drizzle
View open source insights on deps.dev
Purl
pkg:npm/%40payloadcms/drizzle

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.73.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-xx6w-jxg9-2wh8/GHSA-xx6w-jxg9-2wh8.json"