Summary
CVE-2026-105858 is a remote code execution vulnerability in Payload CMS, a popular open-source headless content management system. The flaw resides in the publicly reachable "first-register" operation — the endpoint used to create the initial administrator account on a fresh installation — and allows an unauthenticated attacker to achieve code execution when local authentication is enabled and no user has yet been created. The issue carries a CVSS v3.1 base score of 8.1 (High).
Technical details
- Root cause: The first-register operation does not properly sanitize attacker-supplied submission data before it is processed, allowing special elements in the request to alter code behavior. The issue is tracked under CWE-94 (Improper Control of Generation of Code / Code Injection) and CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes / Prototype Pollution), indicating a prototype-pollution primitive is used to reach code execution.
- Trigger conditions: The target application must have local authentication enabled and must not yet have an initial user created — i.e., the first-register endpoint is still active and publicly accessible, as is the case on newly deployed or not-yet-initialized instances.
- Attack vector: Network — a single crafted HTTP request to the public first-register operation, with no authentication, privileges, or user interaction required. Attack complexity is rated High.
- Impact: Successful exploitation results in high impact to confidentiality, integrity, and availability, consistent with full remote code execution on the application server.
Affected software
- Payload CMS versions prior to 3.90.0
- Payload CMS canary versions 4.0.0-canary.0 through 4.0.0-canary.33
Severity
- CVSS v3.1 Base Score: 8.1 (High)
- Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade Payload CMS to version 3.90.0 or later. Instances tracking the canary release channel should upgrade to 4.0.0-canary.34 or later.
- If no patch can be applied immediately: Ensure an initial administrator user is created on any newly deployed instance as soon as possible so the first-register operation is no longer reachable, and restrict public network access to the application until it can be patched.

