Payload: SQL injection in SQLite/Postgres
payloadcms payload · @payloadcms db-d1-sqlite · @payloadcms db-postgres · @payloadcms db-sqlite
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @payloadcms/db-sqlite npm |
|
|
| @payloadcms/db-d1-sqlite npm |
|
payloadcms payload · @payloadcms db-d1-sqlite · @payloadcms db-postgres · @payloadcms db-sqlite
| Product | Affected | Fixed in |
|---|---|---|
| @payloadcms/db-sqlite npm |
|
|
| @payloadcms/db-d1-sqlite npm |
|
|
| @payloadcms/db-postgres npm |
|
|
| @payloadcms/db-vercel-postgres npm |
|
|
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.
From the CVE record · GitHub_M
Payload’s affected database adapters allow SQL injection through crafted field paths and operators. An attacker needs read and create or update access to a collection with a JSON field or a blocks field with blocksAsJSON enabled. Collections without those fields and richText fields are not affected.
Check deployments using @payloadcms/db-sqlite or @payloadcms/db-d1-sqlite from 3.0.0 before 3.90.0 or 4.0.0-canary.0 before 4.0.0-canary.34, or @payloadcms/db-postgres or @payloadcms/db-vercel-postgres from 3.0.0 before 3.73.0.