CVE-2026-105856
JSON

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 packageVersionsReported 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.0CVE List, NVD
@payloadcms db-d1-sqlite>= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34CVE List
@payloadcms db-postgres>= 3.0.0 < 3.73.0CVE List
@payloadcms db-sqlite>= 3.0.0, < 3.90.0, >= 4.0.0-canary.0, < 4.0.0-canary.34CVE List
@payloadcms db-vercel-postgres>= 3.0.0 < 3.73.0CVE List
@payloadcms/db-sqlite (npm)from 3.0.0 before 3.90.0, from 4.0.0-canary.0 before 4.0.0-canary.34GitHub 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.34GitHub Advisory Database
@payloadcms/db-postgres (npm)from 3.0.0 before 3.73.0GitHub Advisory Database
@payloadcms/db-vercel-postgres (npm)from 3.0.0 before 3.73.0GitHub Advisory Database

All scores

GitHub_M8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Classification

CWE-89

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-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.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-105856 changed 2026-10-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-pj7x-6wpf-pgvp changed 2026-10-14CC-BY-4.0
NVDCVE-2026-105856 changed 2026-10-15Public domain