8.6high
Payload: SQL injection in SQLite/Postgres
- Severity
- 8.6high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pj7x-6wpf-pgvp
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
| Product or package | Versions | Reported by |
|---|---|---|
| payloadcms payload | >= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34, before 3.90.0, 4.0.0 | CVE List, NVD |
| @payloadcms db-d1-sqlite | >= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34 | CVE List |
| @payloadcms db-postgres | >= 3.0.0 < 3.73.0 | CVE List |
| @payloadcms db-sqlite | >= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34 | CVE List |
| @payloadcms db-vercel-postgres | >= 3.0.0 < 3.73.0 | CVE List |
| @payloadcms/db-sqlite (npm) | from 3.0.0 before 3.90.0, from 4.0.0-canary.0 before 4.0.0-canary.34 | GitHub Advisory Database |
| @payloadcms/db-d1-sqlite (npm) | from 3.0.0 before 3.90.0, from 4.0.0-canary.0 before 4.0.0-canary.34 | GitHub Advisory Database |
| @payloadcms/db-postgres (npm) | from 3.0.0 before 3.73.0 | GitHub Advisory Database |
| @payloadcms/db-vercel-postgres (npm) | from 3.0.0 before 3.73.0 | GitHub Advisory Database |
All scores
| GitHub_M | 8.6high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-105856 changed 2026-10-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pj7x-6wpf-pgvp changed 2026-10-14 | CC-BY-4.0 |
| NVD | CVE-2026-105856 changed 2026-10-15 | Public domain |