CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-105806

CVE-2026-105806: Privilege Escalation and Missing Authorization in @payloadcms/plugin-mcp

Alon Barad
Alon Barad
Software Engineer

Oct 7, 2026·5 min read·20 visits

Executive Summary (TL;DR)

A missing authorization check in @payloadcms/plugin-mcp allows authenticated low-privilege users to generate MCP API keys mapped to administrative accounts, resulting in privilege escalation and full account takeover.

CVE-2026-105806 is an improper access control vulnerability within the Model Context Protocol (MCP) plugin for Payload CMS. Authenticated users with low privileges can manipulate API key creation and mapping to associate keys with arbitrary users, including administrators. This allows total session takeovers and privilege escalation via MCP-authenticated API requests.

Vulnerability Overview

The Model Context Protocol (MCP) plugin for Payload CMS integrates LLM-based agent capabilities with the database layer of Payload CMS. It exposes a specific collection, payload-mcp-api-keys, which manages authentication tokens for MCP clients.\n\nUnder normal operations, these API keys associate client sessions with specific CMS user identities, granting them the capability to run automated actions inside Payload CMS. The security model relies on these keys executing precisely within the permission scope of their linked user.\n\nHowever, prior to version 3.88.0, the collection defining these keys omitted collection-level and field-level access controls. This omission allowed any authenticated user to interact with the database records of other users or generate new keys mapped directly to high-privilege administrators.

Root Cause Analysis

The root cause of CVE-2026-105806 is the absence of authorization checks on the payload-mcp-api-keys collection and its associated relationship fields.\n\nIn Payload CMS, database collections without explicit access properties default to allowing read, write, and update permissions for any authenticated user. Because the plugin defined the payload-mcp-api-keys collection without restriction, any authenticated entity could submit requests to retrieve or alter API keys.\n\nFurthermore, the user relationship field lacked restrictions, allowing client-supplied input to directly map the owner ID during creation or modification operations. This combination allowed an attacker to bypass user boundaries, associating their generated API key with an administrative identifier.

Code Analysis

Prior to the patch, the payload-mcp-api-keys collection did not implement restrictive access control hooks. The user field allowed direct user-supplied mutations.\n\nmermaid\ngraph LR\n A["Attacker (Low Privilege)"] -->|1. POST /api/payload-mcp-api-keys| B["Payload CMS API"]\n B -->|2. Stores user: admin-id| C[("Database")]\n C -->|3. Issues Administrative Token| A\n\n\nThe patch in commit 025581d8c5ed836039ad85397288a30f0d3c11c1 mitigated this by adding strict validation checks. Let us examine the modifications introduced in packages/plugin-mcp/src/collections/createApiKeysCollection.ts:\n\nts\n const isAuthenticated = ({ req }: { req: PayloadRequest }): boolean =>\n Boolean(req.user && req.user.collection === userCollection)\n\n const restrictToOwnKeys = ({ req }: { req: PayloadRequest }): boolean | Where =>\n req.user && req.user.collection === userCollection ? { user: { equals: req.user.id } } : false\n\n return {\n slug: 'payload-mcp-api-keys',\n access: {\n create: isAuthenticated,\n delete: restrictToOwnKeys,\n read: restrictToOwnKeys,\n unlock: restrictToOwnKeys,\n update: restrictToOwnKeys,\n },\n\n\nAdditionally, the user field access controls were set to false for direct creation and updates from client inputs, forcing the use of a server-side default value hook:\n\nts\n {\n name: 'user',\n type: 'relationship',\n access: {\n create: () => false,\n update: () => false,\n },\n defaultValue: ({ req }: { req: PayloadRequest }) =>\n req.user && req.user.collection === userCollection ? req.user.id : undefined,\n relationTo: userCollection as CollectionSlug,\n required: true,\n },\n\n\nThis architecture guarantees that the database always resolves the API key's owner directly from the verified server-side session variable (req.user.id), eliminating the potential for identity spoofing.

Exploitation Methodology

An attacker must first authenticate to Payload CMS using a legitimate, low-privilege account. No special elevated roles or permissions are required to launch this attack.\n\nThe attacker then requests a list of administrators or obtains an administrator ID via standard enumeration methods, which is a common pattern in multi-user content management systems.\n\nNext, the attacker submits an API key creation payload to the MCP endpoint. By explicitly passing the targeted administrative user's ID within the user relationship field, the attacker registers a new API key.\n\nWhen the system processes subsequent requests presenting this API key, the authentication layer maps the session to the target administrative user. The attacker can then perform administrative actions and execute system tools with full privileges.

Impact Assessment

The impact of CVE-2026-105806 is rated as High, with a CVSS v4.0 score of 8.6. Exploitation allows complete privilege escalation and full account takeover.\n\nBecause the MCP plugin interacts directly with the database layer, an administrative token gives the attacker full write and read capabilities across all collections. This includes accessing sensitive proprietary data, user credentials, and configuration files.\n\nIf the CMS manages critical integration systems or runs system-level tasks, the attacker could leverage the MCP engine to execute arbitrary code. The lack of operational complexity makes this a severe risk for enterprise installations running vulnerable versions of the plugin.

Remediation and Mitigation

The primary remediation step is to upgrade @payloadcms/plugin-mcp to version 3.88.0 or higher, which secures the default collection properties.\n\nIf upgrading is not immediately possible, administrators must restrict access to the payload-mcp-api-keys collection manually or disable the MCP plugin entirely. Deploying custom access control hooks on the collection schema can temporarily mitigate the vulnerability.\n\nFor custom workflows that require cross-user management of API keys by administrators, developers must use the overrideApiKeyCollection hook to safely enforce access control logic. Below is a secure configuration demonstrating how to limit management privileges strictly to administrative users:\n\nts\nimport type { PayloadRequest } from 'payload'\nimport { mcpPlugin } from '@payloadcms/plugin-mcp'\n\nconst isAdmin = ({ req }: { req: PayloadRequest }) =>\n Boolean(\n req.user &&\n req.user.collection === 'users' &&\n 'role' in req.user &&\n req.user.role === 'admin',\n )\n\nmcpPlugin({\n overrideApiKeyCollection: (collection) => {\n collection.access = {\n create: isAdmin,\n delete: isAdmin,\n read: isAdmin,\n unlock: isAdmin,\n update: isAdmin,\n }\n collection.fields = collection.fields.map((field) =>\n 'name' in field && field.name === 'user'\n ? { ...field, access: { create: isAdmin, update: isAdmin } }\n : field,\n )\n return collection\n },\n})\n

Official Patches

Payload CMSOfficial Patch Commit

Fix Analysis (1)

Technical Appendix

CVSS Score
8.6/ 10
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

Affected Systems

Payload CMS@payloadcms/plugin-mcp

Affected Versions Detail

Product
Affected Versions
Fixed Version
@payloadcms/plugin-mcp
Payload CMS
>= 3.61.0, < 3.88.03.88.0
AttributeDetail
CWE IDCWE-862
Attack VectorNetwork
CVSS v4.08.6
Exploit StatusUnproven / None
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-862
Missing Authorization

The software does not perform an authorization check when an actor attempts to access a resource or perform an action.

Vulnerability Timeline

Security patch commit authored
2026-08-11
CVE-2026-105806 published to NVD
2026-10-06
GitHub Advisory GHSA-2q76-m6w6-qgc6 published
2026-10-06

References & Sources

  • [1]GitHub Security Advisory GHSA-2q76-m6w6-qgc6
  • [2]Official Patch Commit
  • [3]Release v3.88.0
  • [4]CVE-2026-105806 Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•GHSA-FMC8-P6Q7-75CC
9.9

GHSA-fmc8-p6q7-75cc: Argument Injection in Canonical LXD Backup Compression Leads to Host Root Code Execution

GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 2 hours ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
7 views•10 min read
•about 6 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 7 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
6 views•9 min read
•about 8 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
7 views•10 min read
•about 9 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read