Oct 6, 2026·5 min read·18 visits
Vulnerable versions of Payload CMS fail to restrict read access to the dynamically generated apiKey field, exposing active plaintext API keys to any user with standard read access to user collections.
A sensitive data exposure vulnerability in Payload CMS allows authenticated low-privilege users to retrieve decrypted, plaintext API keys of other users, including administrators, leading to full administrative account takeover and privilege escalation.
The affected component is Payload's default API key authentication mechanism. When a collection configuration enables useAPIKey, the CMS generates default authentication fields, specifically apiKey. In vulnerable versions, Payload fails to enforce adequate field-level read-authorization controls or default masking on this generated apiKey field.
Consequently, any user with ordinary read access to other authentication documents in that collection can retrieve active, unmasked API keys for other users.
This exposes a substantial attack surface, as low-privilege users can query the /api/users endpoint or custom authentication collections and retrieve active keys of higher-privilege administrative accounts. The bug falls under CWE-201 (Insertion of Sensitive Information Into Sent Data) and CWE-862 (Missing Authorization).
In Payload CMS, collections configured with authentication support can generate API keys to allow external integrations or API clients to execute operations. Setting useAPIKey to true dynamically inserts default fields into the collection schema, including enableAPIKey and apiKey.
The root cause of the vulnerability lies in the lack of read-level restrictions in the default field definition of apiKey under packages/payload/src/auth/baseFields/apiKey.ts. The default apiKey field definition did not implement explicit field-level access control, such as access.read = () => false. Consequently, the field inherited the read permissions of the parent document.
Furthermore, the field definition integrated an afterRead hook that mapped to decryptKey. Whenever a read operation was executed on a document within the collection, the database engine returned the ciphertext, the hook automatically decrypted it using the primary payload secret, and the plaintext API key was rendered directly in the output JSON.
An examination of the patch in commit 880d2e900be22cd66a9e939f2b3e702fa413180f reveals the structural remediation of this design flaw. The developer replaced the implicit read inheritance with a hard block on standard read operations. The access.read attribute is now explicitly defined as () => false for the apiKey field.
The patch also eliminates the automated decryption process during standard reads. The decryptKey hook was completely removed, replaced by the omitEncryptedAPIKey hook within afterRead, which guarantees that the raw or encrypted key cannot be leaked even if database extraction occurs. A new dedicated and secured reveal endpoint (/:id/api-key/reveal) was introduced, implementing granular verification checks that demand admin panel access capabilities alongside read and write permissions on the targeted document.
Exploitation requires that the attacker has authenticated credentials with standard read permissions to the user collection. In a standard multi-tenant or multi-user configuration, standard users or content authors might have permissions to view other profiles, or a lax API configuration might permit broad read access to the /api/users endpoint.
The attacker queries the endpoint using standard HTTP REST or GraphQL operations. Because the apiKey field is decrypted on read, the server returns the plaintext API keys in the response payload.
The attacker extracts the active API key of an administrative user and places it in the Authorization header of subsequent requests. Since the API key authentication middleware identifies the key and maps it to the target user context, the attacker assumes the full permissions of the administrative account, achieving complete privilege escalation.
An attacker who exploits this vulnerability gains full, unauthenticated administrative access over the affected CMS instance. Because API keys bypass multi-factor authentication and standard login logging protocols, the attacker's activities may remain undetected within standard authentication monitoring channels.
The vulnerability carries a CVSS v4.0 base score of 7.7, reflecting high confidentiality, integrity, and availability impacts within the local CMS instance. While the vulnerability is restricted to the Payload CMS application layer, administrative compromise allows complete data exfiltration, database tampering, and arbitrary execution of any integrated headless processes.
The primary remediation strategy is upgrading the Payload installation to version 3.90.0 or higher, or 4.0.0-canary.34 or higher. These releases implement the hardened field configuration and secure disclosure endpoints.
If upgrading is not immediately possible, security teams should implement immediate manual overrides. This includes modifying collection definitions to explicitly set the access.read constraint of the apiKey field to () => false.
Additionally, read permissions on user collections must be locked down using granular access rules so that non-administrative users can only read their own documents. Finally, any potentially exposed API keys must be immediately rotated to invalidate cached sessions.
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
payload Payload CMS | >= 3.0.0 < 3.90.0 | 3.90.0 |
payload Payload CMS | >= 4.0.0-canary.0 < 4.0.0-canary.34 | 4.0.0-canary.34 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-201, CWE-862 |
| Attack Vector | Network |
| CVSS Score | 7.7 |
| EPSS Score | N/A |
| Impact | Account Takeover / Privilege Escalation |
| Exploit Status | poc |
| KEV Status | Not Listed |
The product houses sensitive information in a resource that is accessible to unauthorized actors, resulting in the exposure of this information.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.
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.