CVE-2026-105856: Payload: SQL injection in SQLite/Postgres

Published Oct 6, 2026
·
Updated

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

Other sources

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.

— NVD

Affected Software

43 affected componentsFixes available
npm/@payloadcms/db-sqlite<3.90.0, <4.0.0-canary.34
npm/@payloadcms/db-postgres<3.73.0
npm/@payloadcms/db-d1-sqlite>=4.0.0-canary.0<4.0.0-canary.34
4.0.0-canary.34
npm/@payloadcms/db-sqlite>=4.0.0-canary.0<4.0.0-canary.34
4.0.0-canary.34
npm/@payloadcms/db-vercel-postgres>=3.0.0<3.73.0
3.73.0
npm/@payloadcms/db-postgres>=3.0.0<3.73.0
3.73.0
npm/@payloadcms/db-d1-sqlite>=3.0.0<3.90.0
3.90.0
npm/@payloadcms/db-sqlite>=3.0.0<3.90.0
3.90.0
PayloadCMS Payload Node.js<3.90.0
PayloadCMS Payload Node.js=4.0.0-canary0
PayloadCMS Payload Node.js=4.0.0-canary1
PayloadCMS Payload Node.js=4.0.0-canary10
PayloadCMS Payload Node.js=4.0.0-canary11
PayloadCMS Payload Node.js=4.0.0-canary12
PayloadCMS Payload Node.js=4.0.0-canary13
PayloadCMS Payload Node.js=4.0.0-canary14
PayloadCMS Payload Node.js=4.0.0-canary15
PayloadCMS Payload Node.js=4.0.0-canary16
PayloadCMS Payload Node.js=4.0.0-canary17
PayloadCMS Payload Node.js=4.0.0-canary18
PayloadCMS Payload Node.js=4.0.0-canary19
PayloadCMS Payload Node.js=4.0.0-canary2
PayloadCMS Payload Node.js=4.0.0-canary20
PayloadCMS Payload Node.js=4.0.0-canary21
PayloadCMS Payload Node.js=4.0.0-canary22
PayloadCMS Payload Node.js=4.0.0-canary23
PayloadCMS Payload Node.js=4.0.0-canary24
PayloadCMS Payload Node.js=4.0.0-canary25
PayloadCMS Payload Node.js=4.0.0-canary26
PayloadCMS Payload Node.js=4.0.0-canary27
PayloadCMS Payload Node.js=4.0.0-canary28
PayloadCMS Payload Node.js=4.0.0-canary29
PayloadCMS Payload Node.js=4.0.0-canary3
PayloadCMS Payload Node.js=4.0.0-canary30
PayloadCMS Payload Node.js=4.0.0-canary31
PayloadCMS Payload Node.js=4.0.0-canary32
PayloadCMS Payload Node.js=4.0.0-canary33
PayloadCMS Payload Node.js=4.0.0-canary4
PayloadCMS Payload Node.js=4.0.0-canary5
PayloadCMS Payload Node.js=4.0.0-canary6
PayloadCMS Payload Node.js=4.0.0-canary7
PayloadCMS Payload Node.js=4.0.0-canary8
PayloadCMS Payload Node.js=4.0.0-canary9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@payloadcms/db-d1-sqlite to a version that resolves this vulnerability.

    Fixed in 4.0.0-canary.34
  2. Upgrade

    Upgrade npm/@payloadcms/db-sqlite to a version that resolves this vulnerability.

    Fixed in 4.0.0-canary.34
  3. Upgrade

    Upgrade npm/@payloadcms/db-vercel-postgres to a version that resolves this vulnerability.

    Fixed in 3.73.0
  4. Upgrade

    Upgrade npm/@payloadcms/db-postgres to a version that resolves this vulnerability.

    Fixed in 3.73.0
  5. Upgrade

    Upgrade npm/@payloadcms/db-d1-sqlite to a version that resolves this vulnerability.

    Fixed in 3.90.0
  6. Upgrade

    Upgrade npm/@payloadcms/db-sqlite to a version that resolves this vulnerability.

    Fixed in 3.90.0
  7. Upgrade

    Upgrade @payloadcms/db-sqlite and @payloadcms/db-d1-sqlite to a version that resolves this vulnerability.

    Fixed in 3.90.0
  8. Upgrade

    Upgrade @payloadcms/db-postgres and @payloadcms/db-vercel-postgres to a version that resolves this vulnerability.

    Fixed in 3.73.0

Event History

Oct 6, 2026
CVE Published
via MITRE·04:23 PM
Data Sourced
via MITRE·04:23 PM
DescriptionWeakness
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 7, 2026
Advisory Published
via GitHub·08:30 PM
Data Sourced
via GitHub·08:30 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are affected?

Affected deployments use the SQLite or Postgres Payload database packages and have a collection containing a JSON field, or a blocks field with blocksAsJSON enabled. Collections without those fields, and richText fields, are not affected.

2

What access does an attacker need?

An attacker needs read access plus either create or update access to an affected collection. They can exploit the issue by supplying a crafted field path and operators.

3

Which versions contain fixes?

For the SQLite packages, fixes are available in versions 3.90.0 and 4.0.0-canary.34. For the Postgres packages, the fix is available in version 3.73.0.

4

What can be done if an immediate upgrade is not possible?

Limit read, create, and update access to affected collections, particularly for users who do not require those permissions. Collections without JSON fields or blocks fields configured with blocksAsJSON are not affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203