{"id":"GHSA-pj7x-6wpf-pgvp","revision":"e6cba970e4cb4cf2aaf419f6efb091fa","records":[{"revision":"e6cba970e4cb4cf2aaf419f6efb091fa","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-pj7x-6wpf-pgvp","aliases":["CVE-2026-105856","CVE-2026-63316"],"title":"Payload: SQL injection in SQLite/Postgres","description":"### 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`.","state":0,"publishedAt":"2026-10-07T20:30:04+00:00","modifiedAt":"2026-10-14T02:55:56.4351046+00:00","affected":[{"ecosystem":"npm","name":"@payloadcms/db-sqlite","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.90.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.90.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@payloadcms/db-postgres","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.73.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@payloadcms/db-vercel-postgres","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.73.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@payloadcms/db-sqlite","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0-canary.0"},{"kind":"fixed","version":"4.0.0-canary.34"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@payloadcms/db-d1-sqlite","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0-canary.0"},{"kind":"fixed","version":"4.0.0-canary.34"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/payloadcms/payload/security/advisories/GHSA-pj7x-6wpf-pgvp","https://nvd.nist.gov/vuln/detail/CVE-2026-105856","https://github.com/payloadcms/payload/commit/03b78c7e0901d19c67f07bdf6396a276010adbcc","https://github.com/payloadcms/payload","https://github.com/payloadcms/payload/releases/tag/v3.90.0"],"sourceUrl":"https://github.com/advisories/GHSA-pj7x-6wpf-pgvp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pj7x-6wpf-pgvp","identifiers":["GHSA-pj7x-6wpf-pgvp","CVE-2026-105856","CVE-2026-63316"]},"retained":false,"historicalAffected":[]}],"coverage":[]}