Loading...
Skip to main content

CVE-2026-25544 — @payloadcms/drizzle has SQL Injection in...

CRITICAL

@payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters

Published February 5, 2026Updated February 7, 2026Source: osv

Summary

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

Advisory Timeline

  • First published February 5, 2026 (249 days ago).
  • Last revised February 7, 2026 — 1 day after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @payloadcms/drizzle to 3.73.0 or later
npm install @payloadcms/drizzle@3.73.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
@payloadcms/drizzle
npm
All versions3.73.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-25544?
@payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-25544?
CVE-2026-25544 affects @payloadcms/drizzle. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25544 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-xx6w-jxg9-2wh8

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies