{"schema":"threatline.record/2","record":{"id":"CVE-2026-105856","aliases":["CVE-2026-63316","GHSA-pj7x-6wpf-pgvp"],"summary":"Payload: SQL injection in SQLite/Postgres","details":"### 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`.","categories":["Databases"],"product":"@payloadcms/db-sqlite","vendor":"payloadcms","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite"},"range":">= 3.0.0, < 3.90.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite"},"range":">= 3.0.0, < 3.90.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-postgres"},"range":">= 3.0.0, < 3.73.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-vercel-postgres"},"range":">= 3.0.0, < 3.73.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite"},"range":">= 4.0.0-canary.0, < 4.0.0-canary.34"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite"},"range":">= 4.0.0-canary.0, < 4.0.0-canary.34"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","source_modified_at":"2026-10-06T17:39:22.911Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"payload","vendor":"payloadcms","versions":[{"version":">= 3.0.0, < 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","source_modified_at":"2026-10-06T17:39:22.911Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"db-d1-sqlite","vendor":"@payloadcms","versions":[{"version":">= 3.0.0, < 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","source_modified_at":"2026-10-06T17:39:22.911Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"db-postgres","vendor":"@payloadcms","versions":[{"version":">= 3.0.0 < 3.73.0","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","source_modified_at":"2026-10-06T17:39:22.911Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"db-sqlite","vendor":"@payloadcms","versions":[{"version":">= 3.0.0, < 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","source_modified_at":"2026-10-06T17:39:22.911Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"db-vercel-postgres","vendor":"@payloadcms","versions":[{"version":">= 3.0.0 < 3.73.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite","purl":"pkg:npm/%40payloadcms/db-sqlite"},"ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.90.0"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite","purl":"pkg:npm/%40payloadcms/db-d1-sqlite"},"ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.90.0"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-postgres","purl":"pkg:npm/%40payloadcms/db-postgres"},"ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.73.0"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-vercel-postgres","purl":"pkg:npm/%40payloadcms/db-vercel-postgres"},"ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.73.0"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite","purl":"pkg:npm/%40payloadcms/db-sqlite"},"ranges":[{"events":[{"introduced":"4.0.0-canary.0"},{"fixed":"4.0.0-canary.34"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite","purl":"pkg:npm/%40payloadcms/db-d1-sqlite"},"ranges":[{"events":[{"introduced":"4.0.0-canary.0"},{"fixed":"4.0.0-canary.34"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite"},"version":"3.90.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite"},"version":"3.90.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-postgres"},"version":"3.73.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-vercel-postgres"},"version":"3.73.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite"},"version":"4.0.0-canary.34"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-07T20:30:05Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite"},"version":"4.0.0-canary.34"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite","purl":"pkg:npm/%40payloadcms/db-sqlite"},"version":"3.90.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite","purl":"pkg:npm/%40payloadcms/db-d1-sqlite"},"version":"3.90.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-postgres","purl":"pkg:npm/%40payloadcms/db-postgres"},"version":"3.73.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-vercel-postgres","purl":"pkg:npm/%40payloadcms/db-vercel-postgres"},"version":"3.73.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-sqlite","purl":"pkg:npm/%40payloadcms/db-sqlite"},"version":"4.0.0-canary.34"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","source_modified_at":"2026-10-14T02:55:56.435104575Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite","purl":"pkg:npm/%40payloadcms/db-d1-sqlite"},"version":"4.0.0-canary.34"}],"cvss":8.6,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00293,"percentile":0.20826,"score_date":"2026-10-23"},"published_at":"2026-10-06T16:23:58.643Z","modified_at":"2026-10-14T02:55:56.435104575Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-07T20:30:05Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-105856","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-06T17:39:22.911Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-pj7x-6wpf-pgvp","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-14T02:55:56.435104575Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-105856","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/payloadcms/payload/security/advisories/GHSA-pj7x-6wpf-pgvp","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105856","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/payloadcms/payload/commit/03b78c7e0901d19c67f07bdf6396a276010adbcc","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/payloadcms/payload/releases/tag/v3.90.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-06T17:34:12.712056Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-14T02:55:56.435104575Z","content_hash":"edb3269e4f1c637832525a145d231a8a41449523d76115eb62784fe729fc17c3"}}
