Vulnerabilities in pkg:npm/@payloadcms/drizzle
PACKAGECVE-2026-25544 is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting @payloadcms/drizzle libraries in the npm ecosystem. The issue involves @payloadcms/drizzle has sql injection in json/richtext queries on postgresql/sqlite adapters. Remediation is available by upgrading affected packages to version 3.73.0.
pkg:npm/@payloadcms/drizzle
Vulnerability advisories affecting package pkg:npm/@payloadcms/drizzle. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xx6w-jxg9-2wh8 | CVE-2026-25544 | CRITICAL | @payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters |
CVE-2026-25544 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-25544
To remediate this vulnerability, upgrade all affected @payloadcms/drizzle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @payloadcms/drizzle@3.73.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @payloadcms/drizzle
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-25544, inspect your project dependencies using npm:
npm ls @payloadcms/drizzle
Analyze the terminal output to locate any version of @payloadcms/drizzle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.73.0), your application is affected.
Note: The npm ls @payloadcms/drizzle command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In @payloadcms/drizzle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25544 Affected @payloadcms/drizzle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@payloadcms/drizzle
|
npm |
< 3.73.0
|
3.73.0
|
References
Frequently Asked Questions
What is CVE-2026-25544?
Which @payloadcms/drizzle versions are affected?
What version fixes CVE-2026-25544?
Is @payloadcms/drizzle affected?
What is the CVSS score of CVE-2026-25544?
What CWE is associated with CVE-2026-25544?
How can I check npm dependencies for CVE-2026-25544?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xx6w-jxg9-2wh8",
"modified" : "2026-02-07T00:31:51Z",
"published" : "2026-02-05T20:51:38Z",
"aliases" : [ "CVE-2026-25544" ],
"summary" : "@payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters",
"details" : "### Impact\n\nWhen 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.\n\n**Users are affected if ALL of these are true:**\n\n1. Payload version < v3.73.0\n2. Using a Drizzle-based database adapter (`@payloadcms/drizzle` as dependency):\n - `@payloadcms/db-postgres`\n - `@payloadcms/db-vercel-postgres`\n - `@payloadcms/db-sqlite`\n - `@payloadcms/db-d1-sqlite`\n3. 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)\n\n**Users are NOT affected if:**\n\n- Using `@payloadcms/db-mongodb`\n- No JSON or richText fields exist in any collection\n- All JSON/richText fields have `access: { read: () => false }`\n\n### Patches\n\nUpgrade to Payload **v3.73.0** or later.\n\n### Workarounds\n\nIf a project cannot upgrade immediately, add `access: { read: () => false }` to all JSON and richText fields as a temporary mitigation.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@payloadcms/drizzle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.73.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/payloadcms/payload/security/advisories/GHSA-xx6w-jxg9-2wh8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25544"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/payloadcms/payload"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-05T20:51:38Z",
"nvd_published_at" : "2026-02-06T22:16:11Z"
}
}