Oct 7, 2026·6 min read·59 visits
Unauthenticated remote attackers can pollute the global object prototype in Payload CMS to bypass access controls and execute arbitrary code on the server.
A critical prototype pollution vulnerability in the import-export plugin of Payload CMS allows unauthenticated remote attackers to bypass access controls and achieve remote code execution.
The @payloadcms/plugin-import-export plugin provides essential administrative capabilities to Payload CMS, a headless content management system built on Next.js. Specifically, the plugin manages collection data exports and imports, allowing administrators to transfer content via formats like JSON or CSV. To achieve this, it maps user-specified field arrays to configuration objects and queries.
Because the plugin does not properly sanitize or filter the user-supplied field paths, it exposes a critical entry point for prototype pollution. Unauthenticated attackers can submit custom paths containing special object properties such as proto. This lack of validation represents a significant implementation flaw in the processing engine.
This vulnerability is tracked under the identifier CVE-2026-105844 with a high CVSS rating. It falls under the category of CWE-1321, which designates improperly controlled modification of object prototype attributes. The ultimate impact of successful exploitation is arbitrary code execution, presenting a severe risk to affected deployments.
The root cause of this flaw lies in the path-parsing logic implemented within the plugin's utility files. Functions like setNestedValue are designed to dynamically traverse and set values on objects based on split dot-notation paths. When processing paths, the application splits the input string by periods and recursively accesses the corresponding keys on the current target object.
During traversal, the function dynamically creates intermediate empty objects when a given path segment is not found. However, the routine lacks checks to prevent traversal of the built-in JavaScript proto accessor. Consequently, if the path contains proto, the reference pointer is successfully redirected to the global Object.prototype structure.
Any subsequent key-value assignment is then applied directly to Object.prototype rather than a local, isolated property. Because all plain JavaScript objects inherit from this prototype, any properties added or altered during this process propagate globally. This mutation of basic object properties undermines the runtime environment's reliability and security controls.
In the vulnerable codebase, the setNestedValue function evaluates each split segment of the user-provided path sequentially. It makes no distinction between ordinary data fields and critical system properties. The lack of input validation enables attackers to pass prototype-polluting paths into the traversal loop directly.
// Vulnerable setNestedValue loop
for (let i = 0; i < parts.length; i++) {
const part = parts[i]
const isLast = i === parts.length - 1
const isIndex = !Number.isNaN(Number(part))
if (!isIndex) {
const currentObj = current as Record<string, unknown>
if (isLast) {
if (typeof part === 'string') {
currentObj[part] = value // Vulnerable assignment to prototype
}
} else {
if (typeof currentObj[part as string] !== 'object' || currentObj[part as string] === null) {
currentObj[part as string] = {}
}
current = currentObj[part as string]
}
}
}The remediated code implements strict filtering prior to executing any traversal or assignment. A newly added utility function, hasUnsupportedFieldPathSegment, validates that no path segments match proto, constructor, or prototype. Furthermore, the functions now utilize Object.create(null) to guarantee prototype-free container structures, eliminating the default prototype chain lookup entirely.
// Safe setNestedValue implementation
export const setNestedValue = (
obj: Record<string, unknown>,
path: string,
value: unknown,
source?: Record<string, unknown>,
): void => {
const parts = path.split('.')
if (hasUnsupportedFieldPathSegment(parts)) {
throw new APIError('Invalid field path.', 400, null, true)
}
// Traversal loop continues safely...
}Exploitation of CVE-2026-105844 requires that the target application has the @payloadcms/plugin-import-export plugin configured and enabled. An unauthenticated attacker can initiate the compromise by issuing a single, crafted HTTP POST request. The request targets the /api/exports/export-preview endpoint and includes a polluted payload inside the fields parameter.
The target application processes the fields array to generate an export layout, calling the vulnerable setNestedValue routine. By submitting a path like proto.overrideAccess with a value of true, the attacker modifies the base object prototype of the entire runtime. As a result, subsequent empty options objects checked by Payload's internal access engine will automatically return true for overrideAccess.
This behavior effectively disables access control verification across the entire application instance. Unauthenticated requests are then processed as though they possess full administrative privileges. From this position, attackers can execute sensitive operations, manipulate database entries, or leverage system utilities to gain remote code execution.
The overall impact of this vulnerability is critical, presenting a severe risk to any internet-exposed Payload CMS instance. Because the endpoint does not require authentication, attackers can execute this exploit from arbitrary network positions. No prior access credentials or system privileges are necessary to perform the attack successfully.
By leveraging the prototype pollution vulnerability, the attacker completely subverts the application's authorization and authentication layers. This subversion grants access to restricted administrative capabilities, including database operations, user management, and system tool execution. Consequently, the confidentiality, integrity, and availability of all hosted data are fully compromised.
Furthermore, the ability to control properties on the global Object.prototype opens multiple paths to remote code execution. Attackers can pollute options passed to system execution utilities such as child_process.spawn, or inject malicious options into templating engines. The resulting complete system compromise enables unauthorized actors to execute arbitrary operating system commands.
The complete resolution of this vulnerability is achieved by updating the Payload CMS packages to their respective non-vulnerable versions. Deployments on the 3.x release track must be updated to version 3.88.0 or higher. Deployments utilizing the canary pre-release track must be updated to version 4.0.0-canary.27 or higher.
If immediate software updates are impossible, temporary mitigation strategies must be applied. Web Application Firewalls (WAFs) should be configured with deep packet inspection rules to identify and drop requests targeting /exports/export-preview that contain proto, constructor, or prototype strings. These filters help reduce the immediate threat surface.
Additionally, access controls should be enforced at the reverse proxy level to limit exposure of administrative and preview endpoints to trusted networks only. While these workarounds reduce the likelihood of exploitation, they do not resolve the underlying vulnerability in the application logic. Complete security compliance can only be established by applying the vendor-supplied updates.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Payload CMS (@payloadcms/plugin-import-export) Payload CMS | >= 3.0.0, < 3.88.0 | 3.88.0 |
Payload CMS (canary) Payload CMS | < 4.0.0-canary.27 | 4.0.0-canary.27 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-1321 |
| Attack Vector | Network (AV:N) |
| CVSS Score | 9.3 (Critical) |
| EPSS Score | N/A |
| Impact | Remote Code Execution (RCE) / Privilege Escalation |
| Exploit Status | Proof of Concept (PoC) documented |
| KEV Status | Not listed |
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
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.