Skip to main content

CVE-2026-63316 — Payload: SQL injection in @payloadcms/db-postgres

HIGH

Payload: SQL injection in SQLite/Postgres

Published October 7, 2026Updated October 14, 2026Source: OSV

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.

Check my package-lock.json

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-sqlite or @payloadcms/db-d1-sqlite.
  • You use @payloadcms/db-postgres or @payloadcms/db-vercel-postgres < 3.73.0.
  • A readable collection has a json field, or a blocks field with blocksAsJSON: true.
  • The attacker has read plus create or update access on it.

You are not affected if:

  • You have no json or blocksAsJSONfields.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
Update @payloadcms/db-postgres to 3.73.0 or later
npm install @payloadcms/db-postgres@3.73.0
npm
Update @payloadcms/db-sqlite to 3.90.0 or later
npm install @payloadcms/db-sqlite@3.90.0
npm
Update @payloadcms/db-vercel-postgres to 3.73.0 or later
npm install @payloadcms/db-vercel-postgres@3.73.0
npm
Update @payloadcms/db-d1-sqlite to 3.90.0 or later
npm install @payloadcms/db-d1-sqlite@3.90.0
npm
Update @payloadcms/db-sqlite to 4.0.0-canary.34 or later
npm install @payloadcms/db-sqlite@4.0.0-canary.34
npm
Update @payloadcms/db-d1-sqlite to 4.0.0-canary.34 or later
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).

PackageFixed In
@payloadcms/db-postgres npm · Affected: All versions3.73.0
@payloadcms/db-sqlite npm · Affected: All versions3.90.0
@payloadcms/db-vercel-postgres npm · Affected: All versions3.73.0
@payloadcms/db-d1-sqlite npm · Affected: All versions3.90.0
@payloadcms/db-sqlite npm · Affected: All versions4.0.0-canary.34
@payloadcms/db-d1-sqlite npm · Affected: All versions4.0.0-canary.34

Vulnerability Classification

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

CVSS Score Breakdown

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

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

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

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

CVSS Score
8.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.36%
EPSS percentile: 21.9

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

GHSA-pj7x-6wpf-pgvp
CVE-2026-105856

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json