Advisory

GHSA-xx6w-jxg9-2wh8

Also known as: CVE-2026-25544

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
  1. 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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-02-05 20:51 UTC
Modified
2026-02-07 00:53 UTC

Affected packages and fixes

@payloadcms/drizzle

npm · All systems

Affected

  • introduced 0, fixed 3.73.0 (semver)

Fixed versions

3.73.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences