Summary
CVE-2026-105845 is a critical SQL injection vulnerability in Payload, the open source headless content management system, affecting its SQLite and PostgreSQL database adapters. An untrusted user with query access to a readable collection can craft a request using dynamic filters or joins to inject arbitrary SQL, allowing unauthorized reading, modification, or deletion of database content. The flaw has a CVSS v3.1 base score of 9.8 (Critical).
Technical details
- Root cause: Payload’s SQLite and Postgres database adapters fail to properly neutralize user-controlled input used to build dynamic query filters and joins, classified as CWE-89 (SQL Injection).
- Trigger conditions: Any user with the ability to query a readable collection — including through dynamic filter or join parameters exposed by Payload’s query API — can submit a crafted request to trigger the flaw.
- Attack vector: Network-based, requires no special privileges and no user interaction (AV:N/AC:L/PR:N/UI:N).
- Impact: Successful exploitation can allow an attacker to read, modify, or delete data stored in the underlying database, resulting in full compromise of confidentiality, integrity, and availability of CMS-managed content.
- Deployments using MongoDB (
@payloadcms/mongodb) as the database adapter are not affected.
Affected software
- Payload CMS versions >= 3.0.0 and < 3.88.0
- Payload CMS 4.0.0-canary.0 through 4.0.0-canary.26
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade Payload to version 3.88.0 or later (or 4.0.0-canary.27 or later for canary tracks).
- If no patch can be applied immediately:
- Restrict untrusted users from supplying dynamic query filters or join parameters on readable collections.
- Limit read access to collections that accept user-supplied query parameters.
- Consider migrating to or preferring the MongoDB adapter, which is not affected by this vulnerability, where feasible.

