CVE-2026-105856Payload: SQL injection in SQLite/Postgres
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.
What to do
Fixed builds are available from npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| npm library | @payloadcms/db-d1-sqlite | Fixed | 4.0.0-canary.34 | GHSA-pj7x-6wpf-pgvp |
| npm library | @payloadcms/db-postgres | Fixed | 3.73.0 | GHSA-pj7x-6wpf-pgvp |
| npm library | @payloadcms/db-sqlite | Fixed | 4.0.0-canary.34 | GHSA-pj7x-6wpf-pgvp |
| npm library | @payloadcms/db-vercel-postgres | Fixed | 3.73.0 | GHSA-pj7x-6wpf-pgvp |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- payloadcms payload: affected: >= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34
- @payloadcms db-d1-sqlite: affected: >= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34
- @payloadcms db-postgres: affected: >= 3.0.0 < 3.73.0
- @payloadcms db-sqlite: affected: >= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34
- @payloadcms db-vercel-postgres: affected: >= 3.0.0 < 3.73.0
References
- https://github.com/payloadcms/payload/security/advisories/GHSA-pj7x-6wpf-pgvp
- https://github.com/payloadcms/payload/commit/03b78c7e0901d19c67f07bdf6396a276010adbcc
- https://github.com/payloadcms/payload/releases/tag/v3.90.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.