Skip to main content
Vulnerability Database/CVE-2026-106100

CVE-2026-106100: Payload CMS Privilege Escalation Flaw

CVE-2026-106100 is a privilege escalation vulnerability in Payload CMS MongoDB adapter that lets authenticated users bypass field-level access controls. This post covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-106100 Overview

CVE-2026-106100 is a broken access control vulnerability in Payload, a free and open source headless content management system. The flaw affects the @payloadcms/db-mongodb adapter in versions before 3.87.0 and canary versions before 4.0.0-canary.20. An authenticated user with document update permissions can modify fields that field-level write access control should prevent them from changing. The Postgres and SQLite adapters are not affected. The weakness is categorized as [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

Authenticated users can bypass field-level write access controls in the MongoDB adapter to modify restricted document fields, leading to unauthorized data manipulation and integrity loss.

Affected Products

  • Payload CMS @payloadcms/db-mongodb versions before 3.87.0
  • Payload CMS @payloadcms/db-mongodb canary versions before 4.0.0-canary.20
  • Payload applications using MongoDB as the backing datastore

Discovery Timeline

  • 2026-10-06 - CVE-2026-106100 published to the National Vulnerability Database
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-106100

Vulnerability Analysis

Payload CMS enforces field-level access control through access.update functions defined on individual fields. These functions determine whether an authenticated user may modify a specific field during a document update operation. In the MongoDB adapter path, the field-level write check was not consistently applied when processing array and block field values that contained null or non-object entries. As a result, an authenticated user able to invoke an update on a document could submit payloads that modified field values the field-level access policy was supposed to protect.

The Postgres and SQLite adapters route write operations through different code paths that correctly apply the field-level checks, which is why those adapters are not affected.

Root Cause

The root cause sits in the beforeValidate field hook pipeline at packages/payload/src/fields/hooks/beforeValidate/promise.ts. When processing arrays and blocks, the pipeline did not strip invalid row values (null, undefined, primitives, or nested arrays) before downstream logic iterated and assigned properties to each row. Malformed rows allowed the field-level access evaluation to be skipped or misapplied for sibling data in the MongoDB adapter, enabling writes that should have been rejected.

Attack Vector

An authenticated user with permission to update a document crafts an update request that includes array or block fields with crafted entries. The request targets fields protected by field-level write access control. Because the vulnerable adapter does not enforce the field-level policy on the manipulated structures, the restricted field values are persisted. Exploitation requires valid credentials and update rights on at least one document, but it does not require elevated roles.

typescript
// Patch excerpt: packages/payload/src/fields/hooks/beforeValidate/promise.ts
 import { getFieldPaths } from '../../getFieldPaths.js'
 import { getExistingRowDoc } from '../beforeChange/getExistingRowDoc.js'
 import { getFallbackValue } from './getFallbackValue.js'
+import { stripNullRows } from './stripNullRows.js'
 import { traverseFields } from './traverseFields.js'

// Patch excerpt: packages/payload/src/fields/hooks/beforeValidate/stripNullRows.ts
+export function stripNullRows(
+  rows: unknown[],
+  fieldType: string,
+  fieldName: string,
+  logger: PayloadRequest['payload']['logger'],
+  siblingData: JsonObject,
+): JsonObject[] {
+  const filteredRows = rows.filter(
+    (row): row is JsonObject => row != null && typeof row === 'object' && !Array.isArray(row),
+  )
+  if (filteredRows.length !== rows.length) {
+    logger.warn({
+      msg: `Stripped ${rows.length - filteredRows.length} invalid row(s) from ${fieldType} field "${fieldName}". Rows must be plain objects.`,
+    })
+    siblingData[fieldName] = filteredRows
+  }
+  return siblingData[fieldName] as JsonObject[]
+}
// Source: https://github.com/payloadcms/payload/commit/8f77dffa9552885ec2710768cfee15b57e389935

Detection Methods for CVE-2026-106100

Indicators of Compromise

  • Application logs containing Stripped N invalid row(s) from <fieldType> field warnings after upgrading, indicating prior malformed payloads were submitted.
  • Audit log entries where protected fields change value without a corresponding privileged user action.
  • Update requests to Payload REST or GraphQL endpoints containing null, primitive, or nested-array entries inside array or block fields.

Detection Strategies

  • Compare the @payloadcms/db-mongodb version in package.json and package-lock.json against the fixed versions 3.87.0 and 4.0.0-canary.20.
  • Review MongoDB change streams or oplog data for writes to fields that have access.update restrictions and reconcile against the acting user's role.
  • Inspect application-level audit trails for update operations where the modified field set exceeds what the user's field-level access policy permits.

Monitoring Recommendations

  • Enable verbose logging on the Payload update pipeline to capture the new stripNullRows warnings introduced in the patch.
  • Alert on repeated update requests from the same session that contain unusual array or block payload shapes.
  • Monitor authentication events in combination with document update events to correlate low-privilege accounts performing high-value field changes.

How to Mitigate CVE-2026-106100

Immediate Actions Required

  • Upgrade @payloadcms/db-mongodb to version 3.87.0 or later, or to canary version 4.0.0-canary.20 or later.
  • Audit documents accessed by non-administrative users since deployment of the vulnerable version and identify unauthorized field modifications.
  • Rotate or review any secrets, tokens, or configuration values stored in MongoDB-backed collections that were protected by field-level write access control.

Patch Information

The fix is published in Payload release v3.87.0 and canary 4.0.0-canary.20. Technical details are documented in the GitHub Security Advisory GHSA-4ww4-68q3-h7g5. The code changes land in the v3 backport commit and the primary fix commit, which add the stripNullRows helper to the beforeValidate hook pipeline.

Workarounds

  • Restrict document update permissions to trusted roles until the patched version is deployed.
  • Add collection-level access.update checks that deny updates when request payloads contain array or block fields with non-object entries.
  • Migrate affected collections to the Postgres or SQLite adapter, which are not vulnerable, if an immediate upgrade is not feasible.
bash
# Upgrade the vulnerable MongoDB adapter package
npm install @payloadcms/db-mongodb@^3.87.0

# Verify the installed version
npm ls @payloadcms/db-mongodb

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.