Skip to main content

Payload CMS EUVDEUVD-2026-93500

| CVE-2026-105856 HIGH
SQL Injection (CWE-89)
2026-10-06 GitHub_M GHSA-pj7x-6wpf-pgvp
8.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with create/update access
  2. Delivery
    Target collection with json or blocksAsJSON field
  3. Exploit
    Craft malicious field path and operators
  4. Execution
    Inject SQL via JSON query builder
  5. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

db-vercel-postgres 3.0.0 < 3.73.0
db-sqlite 4.0.0-canary.0, < 4.0.0-canary.34
db-d1-sqlite 4.0.0-canary.0, < 4.0.0-canary.34
db-postgres 3.0.0 < 3.73.0
db-d1-sqlite 3.0.0, < 3.90.0
payload 4.0.0-canary.0, < 4.0.0-canary.34
payload 3.0.0, < 3.90.0
db-sqlite 3.0.0, < 3.90.0

Affected Packages

npm @payloadcms/db-d1-sqlite fix: 3.90.0, 4.0.0-canary.34
npm @payloadcms/db-postgres fix: 3.73.0
npm @payloadcms/db-sqlite fix: 3.90.0, 4.0.0-canary.34
npm @payloadcms/db-vercel-postgres fix: 3.73.0
euvd db_d1_sqlite_3_0_0 fix: 3.90.0
euvd db_d1_sqlite_4_0_0_canary_0 fix: 4.0.0-canary.34
euvd db_postgres fix: 3.73.0
euvd db_sqlite_3_0_0 fix: 3.90.0
euvd db_sqlite_4_0_0_canary_0 fix: 4.0.0-canary.34
euvd db_vercel_postgres fix: 3.73.0
euvd payload_3_0_0 fix: 3.90.0
euvd payload_4_0_0_canary_0 fix: 4.0.0-canary.34

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

Vendor (GitHub_M) PRIMARY 8.6 HIGH
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 06, 2026 - 18:19 EUVD
CVE Published
Oct 06, 2026 - 16:23 cve.org
HIGH 8.6

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
popular open-source headless CMS, common in dev shops, not ubiquitous infrastructure
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2022-27952 CRITICAL POC
9.8 Apr 12

An arbitrary file upload vulnerability in the file upload module of PayloadCMS v0.15.0 allows attackers to execute arbit

CVE-2026-105844 CRITICAL POC
9.3 Oct 06

Prototype pollution in Payload CMS's @payloadcms/plugin-import-export module lets an unauthenticated remote attacker sub

CVE-2026-105851 CRITICAL POC
9.3 Oct 06

Field-level access control can be bypassed in Payload CMS's document duplicate operation, letting a caller with access t

CVE-2026-105850 HIGH POC
8.8 Oct 06

Duplicate order processing in @payloadcms/plugin-ecommerce allows remote, unauthenticated attackers to have a single Str

CVE-2026-105854 HIGH POC
8.7 Oct 06

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

CVE-2026-105849 HIGH POC
7.7 Oct 06

API key disclosure in Payload CMS lets an authenticated user with ordinary read access to other users' authentication do

CVE-2026-105855 HIGH POC
7.6 Oct 06

Authenticated users who can update an auth collection document in Payload CMS can change the password field on that docu

CVE-2026-105852 MEDIUM POC
6.9 Oct 06

Payload CMS versions before 3.90.0 and canary versions before 4.0.0-canary.34 contain an authorization bypass in relatio

CVE-2026-105857 CRITICAL
10.0 Oct 06

Unauthorized read access to stored form submissions and form email configuration in Payload CMS deployments running the

CVE-2026-105859 CRITICAL
9.8 Oct 06

Payload CMS releases before 3.90.0 (and canary builds before 4.0.0-canary.34) expose an orderable reorder endpoint that

CVE-2026-25544 CRITICAL POC
9.8 Feb 06

Payload CMS prior to 3.73.0 has a SQL injection vulnerability when querying structured data, enabling database compromis

CVE-2026-105845 CRITICAL POC
9.8 Oct 06

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy