CVE-2026-63316 — Payload: SQL injection in @payloadcms/db-postgres
Payload: SQL injection in SQLite/Postgres
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.36%). Schedule for your next planned update.
Does your project use an affected @payloadcms/db-postgres version?
Paste your package-lock.json to check it for CVE-2026-63316 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
An attacker who has read plus create or update access to a collection can submit a request that includes a SQL injection targeting a specific field path shape and operators in Payload's SQLite and Postgres.
You are affected if:
- You use
@payloadcms/db-sqliteor@payloadcms/db-d1-sqlite. - You use
@payloadcms/db-postgresor@payloadcms/db-vercel-postgres< 3.73.0. - A readable collection has a
jsonfield, or ablocksfield withblocksAsJSON: true. - The attacker has read plus create or update access on it.
You are not affected if:
- You have no
json orblocksAsJSONfields.richText` is not affected. - You run a patched version.
Patches
The patched version sanitizes the query input to prevent injection.
Users should upgrade Payload packages to >= 3.90.0 or >= 4.0.0-canary.34.
Advisory Timeline
- First published October 7, 2026 (50 days ago).
- Last revised October 14, 2026 — 6 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @payloadcms/db-postgres@3.73.0
npm install @payloadcms/db-sqlite@3.90.0
npm install @payloadcms/db-vercel-postgres@3.73.0
npm install @payloadcms/db-d1-sqlite@3.90.0
npm install @payloadcms/db-sqlite@4.0.0-canary.34
npm install @payloadcms/db-d1-sqlite@4.0.0-canary.34
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: npm (4).
| Package | Fixed In |
|---|---|
| @payloadcms/db-postgres npm · Affected: All versions | 3.73.0 |
| @payloadcms/db-sqlite npm · Affected: All versions | 3.90.0 |
| @payloadcms/db-vercel-postgres npm · Affected: All versions | 3.73.0 |
| @payloadcms/db-d1-sqlite npm · Affected: All versions | 3.90.0 |
| @payloadcms/db-sqlite npm · Affected: All versions | 4.0.0-canary.34 |
| @payloadcms/db-d1-sqlite npm · Affected: All versions | 4.0.0-canary.34 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/payloadcms/payload/security/advisories/GHSA-pj7x-6wpf-pgvpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-105856ADVISORY
- https://github.com/payloadcms/payload/commit/03b78c7e0901d19c67f07bdf6396a276010adbccWEB
- https://github.com/payloadcms/payloadPACKAGE
- https://github.com/payloadcms/payload/releases/tag/v3.90.0WEB
Frequently Asked Questions
- What is CVE-2026-63316?
- Payload: SQL injection in SQLite/Postgres. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-63316?
- CVE-2026-63316 affects @payloadcms/db-postgres, @payloadcms/db-sqlite and @payloadcms/db-vercel-postgres (and 1 more). It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-63316 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 21.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-34751CRITICAL
Payload: Pre-Authentication Account Takeover via Parameter Injection in Password Recovery
- CVE-2026-105844CRITICAL
Payload: Prototype pollution in Payload Import Export plugin
- CVE-2026-105857CRITICAL
Payload Form Builder has an RCE issue
- CVE-2026-25544CRITICAL
@payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-105850HIGH
Payload Ecommerce has an order confirmation validation issue
- CVE-2026-34748HIGH
@payloadcms/next has Stored XSS in Admin Panel
- CVE-2026-105848MEDIUM
Payload: Insufficient Access Control in Stripe REST Proxy