Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with create/update access
-
DeliveryTarget collection with json or blocksAsJSON field
-
ExploitCraft malicious field path and operators
-
ExecutionInject SQL via JSON query builder
-
ImpactExfiltrate or tamper with database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires ALL of: (1) an affected Payload collection that contains a json field, OR a blocks field with blocksAsJSON explicitly enabled - collections without these are not affected and richText fields are explicitly not affected; (2) a backing database using the vulnerable adapters (@payloadcms/db-postgres, db-vercel-postgres, db-sqlite, or db-d1-sqlite); and (3) an authenticated principal with read AND create-or-update access to that collection (matching CVSS PR:L). The attacker triggers the flaw by supplying a crafted field path and query operators that escape JSON path sanitization. Limiting factors that reduce real-world risk: the required authenticated write access, the dependence on the non-default presence of json/blocksAsJSON fields, and the fact that pure content models (text, richText only) are not exploitable. |
| Impact | This is a genuine high-severity authenticated SQL injection (CWE-89) with a moderate-but-real exploitation barrier rather than an inflated high-CVSS score. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N) scores 8.6 and is internally consistent with the description: network-reachable, low complexity, but requiring PR:L - the attacker must already hold read plus create/update access to an affected collection, so this is not an anonymous internet-wide threat. No EPSS probability, CISA KEV entry, or public exploit was supplied in the intelligence, so exploitation prospects cannot be quantified; the GitHub source evidence is the vendor PATCH (introducing parseJSONPathSegment to replace the insufficient sanitizePathSegment), not weaponized exploit code. The high C and I impacts (VC:H/VI:H) are credible for SQLi allowing arbitrary read/modify, while VA:N (no availability impact) is a reasonable vendor choice. Net: a real priority for any Payload deployment that exposes json or blocksAsJSON fields to semi-trusted users (multi-tenant, customer-facing, or low-trust editor roles), but lower urgency where collection write access is restricted to fully trusted administrators. Absence of EPSS/KEV/POC signals should be read as 'unknown/unproven at time of analysis,' not as 'safe.' |
| Exploit ScenarioDerived | A user holding a low-privilege editor role (create/update access) on a Payload collection that contains a json field, or a blocks field with blocksAsJSON enabled, submits a request whose field path and query operators are crafted to break out of the intended JSON traversal and inject attacker-controlled SQL. Because the path segments were only weakly sanitized before the fix, the injected SQL executes against the backing Postgres or SQLite database, letting the attacker read or alter arbitrary records beyond their authorization. No public exploit identified at time of analysis, though the fixing commit clearly localizes the vulnerable JSON query-builder code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Authenticated SQL injection in Payload CMS allows a user holding read plus create or update permission on a collection that contains a json field - or a blocks field with blocksAsJSON enabled - to inject arbitrary SQL through crafted field paths and query operators when the site runs on the Postgres or SQLite database adapters. Only collections carrying those specific field types are reachable; collections built purely from text and richText fields are explicitly not affected, and richText fields themselves are not exploitable. The flaw requires an authenticated principal (CVSS PR:L) with write access, which materially narrows the attack surface, and no public exploit code or confirmed in-the-wild exploitation has been identified at time of analysis; Payload has shipped fixes in 3.90.0 (SQLite adapters), 3.73.0 (Postgres adapters) and 4.0.0-canary.34.
RemediationAI
Vendor-released patches are available and should be applied immediately: upgrade both @payloadcms/db-sqlite and @payloadcms/db-d1-sqlite to 3.90.0 (or 4.0.0-canary.34 if tracking the canary line), and upgrade @payloadcms/db-postgres and @payloadcms/db-vercel-postgres to 3.73.0, along with the matching core payload release; the fix is delivered by commit 03b78c7e0901d19c67f07bdf6396a276010adbcc and documented in the GitHub advisory GHSA-pj7x-6wpf-pgvp and release v3.90.0. Because exploitation requires an authenticated principal with read plus create-or-update access, the most effective interim control is least-privilege tightening: audit collection access-control functions and remove create/update rights on any collection containing json fields or blocks fields from roles that do not genuinely require them, accepting that this may disrupt legitimate editorial workflows for those roles. Where blocksAsJSON is not needed, disabling it removes the vulnerable code path for blocks fields entirely (trade-off: JSON-native block querying and filtering behaviour changes), and collections that can migrate from a json field to a richText or relational sub-collection model fall outside the affected surface (trade-off: schema and migration work, plus possible API response shape changes). Where upgrades cannot be staged quickly, route the vulnerable database adapters behind a schema-permission-restricted database role, deploy a WAF rule or reverse-proxy filter that rejects requests whose JSON field path or operator parameters contain SQL metacharacters such as quotes, semicolons, comment markers or UNION keywords (trade-off: false positives on legitimate operator values and no protection against direct API or SDK traffic that bypasses the proxy), and monitor database logs for anomalous JSON path traversal fragments. None of these compensating controls repair the underlying path-segment misclassification, so patching remains the only complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 12 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-89 (SQL injection) in Payload's Drizzle-based JSON query builder, the component that translates Payload's JSON field operators into database-level JSON path traversal expressions. Before the fix, the SQLite traversal helper (packages/drizzle/src/sqlite/createJSONQuery/convertPathToJSONTraversal.ts) decided how to render a path segment using a loose parseInt/Number.isNaN check and interpolated the result through a sanitizePathSegment utility, while the Postgres builder (packages/drizzle/src/postgres/createJSONQuery/index.ts) used the same sanitizer inline. That logic could misclassify crafted segments, allowing attacker-controlled field paths and operators to be concatenated into the generated SQL rather than safely parameterised or quoted. The upstream fix (commit 03b78c7e0901d19c67f07bdf6396a276010adbcc) introduces a new parseJSONPathSegment utility that first sanitizes each segment and then classifies it strictly as either an arrayIndex - only when it matches the anchored regex ^\d+$ - or an objectKey, with the two cases rendered differently ('[value]' versus '[value][*]') by the SQLite and Postgres query builders. The affected code ships as four Drizzle adapters, reflected in the CPE inventory: @payloadcms/db-postgres, @payloadcms/db-vercel-postgres, @payloadcms/db-sqlite and @payloadcms/db-d1-sqlite, alongside the core payloadcms:payload package. Independent assessment confirms a genuine high-severity authenticated injection rather than an inflated score: exploitation requires the vulnerable adapter to be in use, a JSON-bearing collection to exist, and the attacker to already hold read and create-or-update rights on that collection.
Know when Payload gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable query API with low complexity, but requires an authenticated low-privilege account with collection write access (PR:L); SQLi yields high confidentiality and integrity impact with no availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 1
Technical POC Analysis
CWE-89 (SQL injection).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Payload CMS, an open-source headless content management system used to power content-driven web and application experiences, contains an authenticated SQL injection flaw (CVE-2026-105856, CVSS 8.6) affecting deployments that run the Postgres or SQLite database adapters. Exploitation requires an authenticated account holding read plus create or update rights on collections containing json fields or blocks fields with blocksAsJSON enabled, so the practical exposure is concentrated among editorial, contractor, and integration accounts rather than the anonymous public, though a malicious or compromised insider account could reach the underlying database contents. Leadership should care because those data stores typically hold customer, partner, and internal content records whose disclosure carries regulatory, contractual, and reputational consequences, and remediation depends on user accounts that are often provisioned loosely.
Apply vendor patch. Where the fixed 3.90.0 (SQLite adapters) or 3.73.0 (Postgres adapters) releases cannot be deployed immediately, restrict read plus create or update permissions on collections containing json or blocks (blocksAsJSON) fields to a minimal set of trusted accounts and revoke such write access from integration or service accounts that do not strictly need it; no other interim mitigation is described in the provided context.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
An arbitrary file upload vulnerability in the file upload module of PayloadCMS v0.15.0 allows attackers to execute arbit
Prototype pollution in Payload CMS's @payloadcms/plugin-import-export module lets an unauthenticated remote attacker sub
Field-level access control can be bypassed in Payload CMS's document duplicate operation, letting a caller with access t
Duplicate order processing in @payloadcms/plugin-ecommerce allows remote, unauthenticated attackers to have a single Str
Malformed multipart request bodies sent to Payload CMS versions 3.0.0 through 3.89.x and 4.0.0-canary.0 through 4.0.0-ca
API key disclosure in Payload CMS lets an authenticated user with ordinary read access to other users' authentication do
Authenticated users who can update an auth collection document in Payload CMS can change the password field on that docu
Payload CMS versions before 3.90.0 and canary versions before 4.0.0-canary.34 contain an authorization bypass in relatio
Unauthorized read access to stored form submissions and form email configuration in Payload CMS deployments running the
Payload CMS releases before 3.90.0 (and canary builds before 4.0.0-canary.34) expose an orderable reorder endpoint that
Payload CMS prior to 3.73.0 has a SQL injection vulnerability when querying structured data, enabling database compromis
SQL injection in Payload CMS 3.0.0 through before 3.88.0 (and 4.0.0-canary builds before 4.0.0-canary.27) allows remote
EUVD-2026-93500
GHSA-pj7x-6wpf-pgvp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB