Oct 7, 2026·5 min read·20 visits
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.
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.
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.
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.
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.
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.
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
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| Product | Affected Versions | Fixed Version |
|---|---|---|
@payloadcms/plugin-mcp Payload CMS | >= 3.61.0, < 3.88.0 | 3.88.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-862 |
| Attack Vector | Network |
| CVSS v4.0 | 8.6 |
| Exploit Status | Unproven / None |
| KEV Status | Not Listed |
The software does not perform an authorization check when an actor attempts to access a resource or perform an action.
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.
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.
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.
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.
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.
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.