{"id":"CVE-2026-105856","aliases":["CVE-2026-105856","GHSA-pj7x-6wpf-pgvp"],"related":["CVE-2026-63316"],"kind":"vulnerability","state":"published","title":"Payload: SQL injection in SQLite/Postgres","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn 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.\n\n#### You are affected if:\n\n- You use `@payloadcms/db-sqlite` or `@payloadcms/db-d1-sqlite`.\n- You use `@payloadcms/db-postgres` or `@payloadcms/db-vercel-postgres` `< 3.73.0`.\n- A readable collection has a `json` field, or a` blocks` field with `blocksAsJSON: true`.\n- The attacker has read plus create or update access on it.\n\n#### You are not affected if:\n- You have no `json or `blocksAsJSON` fields. `richText` is not affected.\n- You run a patched version.\n\n### Patches\n\nThe patched version sanitizes the query input to prevent injection.\n\nUsers should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.","format":"markdown","source":"ghsa"}],"published":"2026-10-06T16:23:58.643Z","modified":"2026-10-15T00:11:47.513Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":8.3,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"vendor":"payloadcms","product":"payload","source":"cvelist"},{"ranges":[{"version":">= 3.0.0, < 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"vendor":"@payloadcms","product":"db-d1-sqlite","source":"cvelist"},{"ranges":[{"version":">= 3.0.0 < 3.73.0","status":"affected"}],"vendor":"@payloadcms","product":"db-postgres","source":"cvelist"},{"ranges":[{"version":">= 3.0.0, < 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"vendor":"@payloadcms","product":"db-sqlite","source":"cvelist"},{"ranges":[{"version":">= 3.0.0 < 3.73.0","status":"affected"}],"vendor":"@payloadcms","product":"db-vercel-postgres","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.90.0"}],"ecosystem":"npm","package":"@payloadcms/db-sqlite","purl":"pkg:npm/%40payloadcms/db-sqlite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.90.0"}],"ecosystem":"npm","package":"@payloadcms/db-d1-sqlite","purl":"pkg:npm/%40payloadcms/db-d1-sqlite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.73.0"}],"ecosystem":"npm","package":"@payloadcms/db-postgres","purl":"pkg:npm/%40payloadcms/db-postgres","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.73.0"}],"ecosystem":"npm","package":"@payloadcms/db-vercel-postgres","purl":"pkg:npm/%40payloadcms/db-vercel-postgres","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0-canary.0","status":"affected","fixed":"4.0.0-canary.34"}],"ecosystem":"npm","package":"@payloadcms/db-sqlite","purl":"pkg:npm/%40payloadcms/db-sqlite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0-canary.0","status":"affected","fixed":"4.0.0-canary.34"}],"ecosystem":"npm","package":"@payloadcms/db-d1-sqlite","purl":"pkg:npm/%40payloadcms/db-d1-sqlite","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.90.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"}],"vendor":"payloadcms","product":"payload","cpe":"cpe:2.3:a:payloadcms:payload:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/payloadcms/payload/security/advisories/GHSA-pj7x-6wpf-pgvp","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/payloadcms/payload/commit/03b78c7e0901d19c67f07bdf6396a276010adbcc","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/payloadcms/payload/releases/tag/v3.90.0","tags":["patch","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105856","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/payloadcms/payload","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-06T17:34:12.712Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-105856","url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","licence":"CVE Terms of Use","modified":"2026-10-06T17:39:22.911Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pj7x-6wpf-pgvp","url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","licence":"CC-BY-4.0","modified":"2026-10-14T02:55:56.435Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-105856","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105856","licence":"Public domain","modified":"2026-10-15T00:11:47.513Z"}],"updatedAt":"2026-11-25T22:59:42.375Z","epss":{"score":0.00294,"percentile":0.23659,"date":"2026-12-01T12:00:22.000Z"}}