# CVE-2026-105856: Payload: SQL injection in SQLite/Postgres

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.52% (percentile 38, 2026-11-30)
- **CWE:** CWE-89
- **Aliases:** CVE-2026-63316, GHSA-pj7x-6wpf-pgvp
- **Published:** 2026-10-06T16:23:58.643Z
- **Modified:** 2026-10-16T20:04:29.760Z

## Who should check

- Projects that depend on npm package @payloadcms/db-sqlite (\>= 3.0.0, \< 3.90.0)
- Projects that depend on npm package @payloadcms/db-d1-sqlite (\>= 3.0.0, \< 3.90.0)
- Projects that depend on npm package @payloadcms/db-postgres (\>= 3.0.0, \< 3.73.0)
- Projects that depend on npm package @payloadcms/db-vercel-postgres (\>= 3.0.0, \< 3.73.0)
- Anyone running payloadcms payload \>= 3.0.0, \< 3.90.0; \>= 4.0.0-canary.0, \< 4.0.0-canary.34
- Anyone running @payloadcms db-d1-sqlite \>= 3.0.0, \< 3.90.0; \>= 4.0.0-canary.0, \< 4.0.0-canary.34
- Anyone running @payloadcms db-postgres \>= 3.0.0 \< 3.73.0
- Anyone running @payloadcms db-sqlite \>= 3.0.0, \< 3.90.0; \>= 4.0.0-canary.0, \< 4.0.0-canary.34

## Description

Payload is a free and open source headless content management system. Prior to 3.90.0 and 4.0.0-canary.34, an attacker with read and create or update access to a collection containing a json field or a blocks field with blocksAsJSON enabled can inject SQL through a crafted field path and operators. Collections without those fields are not affected, and richText fields are not affected. The SQLite packages are fixed in versions 3.90.0 and 4.0.0-canary.34, and the Postgres packages are fixed in version 3.73.0.

## Affected and fixed versions

- npm `@payloadcms/db-sqlite`: affected \>= 3.0.0, \< 3.90.0; fixed 3.90.0, 4.0.0-canary.34 (osv)
- npm `@payloadcms/db-d1-sqlite`: affected \>= 3.0.0, \< 3.90.0; fixed 3.90.0, 4.0.0-canary.34 (osv)
- npm `@payloadcms/db-postgres`: affected \>= 3.0.0, \< 3.73.0; fixed 3.73.0 (osv)
- npm `@payloadcms/db-vercel-postgres`: affected \>= 3.0.0, \< 3.73.0; fixed 3.73.0 (osv)
- payloadcms payload: \>= 3.0.0, \< 3.90.0; \>= 4.0.0-canary.0, \< 4.0.0-canary.34 (cvelist)
- @payloadcms db-d1-sqlite: \>= 3.0.0, \< 3.90.0; \>= 4.0.0-canary.0, \< 4.0.0-canary.34 (cvelist)
- @payloadcms db-postgres: \>= 3.0.0 \< 3.73.0 (cvelist)
- @payloadcms db-sqlite: \>= 3.0.0, \< 3.90.0; \>= 4.0.0-canary.0, \< 4.0.0-canary.34 (cvelist)
- @payloadcms db-vercel-postgres: \>= 3.0.0 \< 3.73.0 (cvelist)

## Mitigation

- Upgrade @payloadcms/db-sqlite to one of 3.90.0, 4.0.0-canary.34 (or later in the same release line).
- Upgrade @payloadcms/db-d1-sqlite to one of 3.90.0, 4.0.0-canary.34 (or later in the same release line).
- Upgrade @payloadcms/db-postgres to 3.73.0 or later.
- Upgrade @payloadcms/db-vercel-postgres to 3.73.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-105856. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-105856.md
Affected: @payloadcms/db-sqlite >= 3.0.0, < 3.90.0; @payloadcms/db-d1-sqlite >= 3.0.0, < 3.90.0; @payloadcms/db-postgres >= 3.0.0, < 3.73.0; @payloadcms/db-vercel-postgres >= 3.0.0, < 3.73.0
Fixed in: 3.90.0, 4.0.0-canary.34, 3.73.0

Steps:
1. Search this machine and project for @payloadcms/db-sqlite (npm), @payloadcms/db-d1-sqlite (npm), @payloadcms/db-postgres (npm), @payloadcms/db-vercel-postgres (npm), payloadcms payload, @payloadcms db-d1-sqlite: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-105856 being exploited?

There is no confirmed exploitation: CVE-2026-105856 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2026-105856?

High: CVSS 8.6 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-105856?

@payloadcms/db-sqlite \>= 3.0.0, \< 3.90.0; @payloadcms/db-d1-sqlite \>= 3.0.0, \< 3.90.0; @payloadcms/db-postgres \>= 3.0.0, \< 3.73.0; @payloadcms/db-vercel-postgres \>= 3.0.0, \< 3.73.0.

### Is there a fix for CVE-2026-105856?

Yes. Fixed in 3.90.0, 4.0.0-canary.34, 3.73.0. Upgrade @payloadcms/db-sqlite to one of 3.90.0, 4.0.0-canary.34 (or later in the same release line). Upgrade @payloadcms/db-d1-sqlite to one of 3.90.0, 4.0.0-canary.34 (or later in the same release line). Upgrade @payloadcms/db-postgres to 3.73.0 or later. Upgrade @payloadcms/db-vercel-postgres to 3.73.0 or later.

### How do I check if I'm affected by CVE-2026-105856?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/payloadcms/payload/security/advisories/GHSA-pj7x-6wpf-pgvp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-105856>
- patch: <https://github.com/payloadcms/payload/commit/03b78c7e0901d19c67f07bdf6396a276010adbcc>
- patch: <https://github.com/payloadcms/payload/releases/tag/v3.90.0>
- other: <https://cert.pl/posts/2026/10/CVE-2026-63316>
- other: <https://github.com/payloadcms/payload>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-105856>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-105856> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-105856>
