Oct 6, 2026·6 min read·19 visits
An authentication bypass and privilege escalation vulnerability in Payload CMS allows authenticated users to overwrite the passwords of other accounts, including administrators, due to premature password extraction prior to access control validation.
An Improper Access Control vulnerability (CWE-284) in Payload CMS prior to version 3.90.0 and 4.0.0-canary.34 allows authenticated, low-privileged users to bypass field-level access control restrictions and overwrite the password of other accounts, leading to complete account takeover and privilege escalation.
Payload CMS is an open-source, full-stack headless content management system built on Next.js and TypeScript. In authentication-enabled collections, the platform automatically manages security fields such as passwords, salts, and email addresses. The system allows developers to define field-level access controls to restrict who can read or update specific attributes within a document.\n\nThe vulnerability designated as CVE-2026-105855 represents an improper access control flaw classified under CWE-284. This flaw permits an authenticated attacker with low-level privileges to modify the password field of any other user in the database. Because the application handles password fields out of sequence during update operations, the security rules designed to protect user passwords are not correctly enforced.\n\nThe impact of this vulnerability is severe, as it facilitates unauthorized account takeovers. By altering the password of an administrator account, a low-privileged attacker can escalate their privileges to the highest level within the CMS. This allows complete administrative access to the underlying data, configuration settings, and associated services.
The root cause of CVE-2026-105855 resides in the document update utility of Payload CMS, specifically within the file packages/payload/src/collections/operations/utilities/update.ts. When processing a document update request, the API executes the updateDocument function to parse incoming data and apply database updates. To handle password hashing and saving, the application must identify whether a password update has been requested.\n\nIn the vulnerable implementation, the application extracted the password field and evaluated the shouldSavePassword boolean flag at the very beginning of the update execution block. This evaluation occurred before the execution of validation hooks and before applying field-level access controls. As a result, the state variable indicating that a password change was pending became locked into memory based on raw, unsanitized user input.\n\nEven though subsequent operations performed the field-level access control checks and correctly stripped the unauthorized password field from the sanitized payload, the persistence mechanism still relied on the early-evaluated shouldSavePassword flag and the cached raw password variable. This architectural logic error allowed the raw password update to bypass the access control system and overwrite the target database record.
The following flowchart illustrates the vulnerable control flow compared to the patched control flow. In the vulnerable version, the password update flag is evaluated prior to access control filtration. In the patched version, the check is deferred until after validation and authorization sanitization have occurred.\n\nmermaid\ngraph LR\n subgraph Vulnerable Flow\n v_input["Raw Payload Input"] --> v_eval["Evaluate shouldSavePassword"]\n v_eval --> v_auth["Run Access Control (Strips Password)"]\n v_auth --> v_write["Write Cached Password to Database"]\n end\n\n subgraph Patched Flow\n p_input["Raw Payload Input"] --> p_auth["Run Access Control (Strips Password)"]\n p_auth --> p_eval["Evaluate shouldSavePassword (Is Undefined)"]\n p_eval --> p_write["Database Write (Password Untouched)"]\n end\n\n\nThe key file affected by this logic error is packages/payload/src/collections/operations/utilities/update.ts. The vulnerable code extracted the password properties prematurely as shown below:\n\ntypescript\n// Vulnerable Code: packages/payload/src/collections/operations/utilities/update.ts\n// Line 101 - Password extracted and flag evaluated prematurely\nconst password = data?.password\n\nconst shouldSavePassword = Boolean(\n password &&\n collectionConfig.auth &&\n (!collectionConfig.auth.disableLocalStrategy ||\n (typeof collectionConfig.auth.disableLocalStrategy === 'object' &&\n collectionConfig.auth.disableLocalStrategy.enableFields)) &&\n !isSavingDraft,\n)\n\n\nThe patch resolved the issue by shifting the extraction of the password and the calculation of shouldSavePassword downstream, placing them after all field-level validation and security filtering have modified the data object:\n\ntypescript\n// Patched Code: packages/payload/src/collections/operations/utilities/update.ts\n// Line 193 - Moved downstream after access control and validation filters\n\nconst password = data?.password\nconst shouldSavePassword = Boolean(\n password &&\n collectionConfig.auth &&\n (!collectionConfig.auth.disableLocalStrategy ||\n (typeof collectionConfig.auth.disableLocalStrategy === 'object' &&\n collectionConfig.auth.disableLocalStrategy.enableFields)) &&\n !isSavingDraft,\n)\n\n\nThis simple repositioning guarantees that if the security parser strips the unauthorized password property from the data object, the variable password evaluates to undefined, and shouldSavePassword is set to false. The fix is complete and structurally sound as it aligns property evaluation with the output of the access control pipeline.
An attacker must obtain a valid, authenticated session with low-level privileges to exploit this vulnerability. The target of the attack is typically an administrative user account or another high-privileged document within an authentication-enabled collection. The attacker must know or discover the target account's unique identifier (ID) within the collection.\n\nThe exploitation begins when the attacker sends a standard document update request, such as an HTTP PATCH request, to the collection endpoint /api/users/{victim-id}. In the JSON body of this request, the attacker includes the password field populated with a new password value of their choice. No other administrative fields or parameters are required to trigger the vulnerability.\n\nUpon receiving the request, the unpatched server parses the incoming JSON, stores the attacker's password value, and establishes the internal update directive. Although the authorization middleware determines that the low-privileged attacker lacks permission to update this field and removes it from the safe data object, the server still proceeds to overwrite the database password record. The victim account is successfully compromised, permitting immediate login by the attacker.
The impact of CVE-2026-105855 is classified as high because it leads to unauthorized access and complete account compromise. An attacker who successfully takes over an administrator account gains full control over the Payload CMS application. This administrative access permits the attacker to read, alter, or delete any content, configurations, and user credentials stored in the system.\n\nUnder the CVSS v4.0 standard, this vulnerability receives a score of 7.6. The vector string is CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N. This indicates a network-based attack vector with low complexity, requiring low privileges and no user interaction, but yielding high confidentiality and integrity impact on the vulnerable system.\n\nCurrently, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and there is no evidence of active exploitation in the wild. However, because the exploit requires only a standard API request and low-level credentials, the likelihood of successful exploitation remains high for unpatched installations.
The primary remediation for this vulnerability is to upgrade the Payload CMS dependency to a secure release. Organizations running stable deployments must update the payload package to version 3.90.0 or later. Organizations using development or canary releases must upgrade to version 4.0.0-canary.34 or later.\n\nIf an immediate upgrade is not feasible, organizations can implement detection rules and temporary controls. Security teams should monitor web application firewalls and server logs for unauthorized PATCH or PUT requests sent to the authentication endpoints of collections where the target ID does not match the requester's ID. Any update request containing a password payload targeting another user's identifier should be flagged as suspicious.\n\nDevelopers should also audit their collection configurations to ensure that the password field is not inadvertently exposed or misconfigured. Running automated integration tests that verify password preservation when unauthorized update attempts are made can prevent regressions. Implementing database-level triggers to track changes on password hash columns can also provide an audit trail of potential compromise.
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
payload payloadcms | < 3.90.0 | 3.90.0 |
payload payloadcms | >= 4.0.0-canary.0 < 4.0.0-canary.34 | 4.0.0-canary.34 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-284 |
| Attack Vector | Network (AV:N) |
| CVSS v4.0 Score | 7.6 (High) |
| EPSS Score | Not Available |
| Exploit Status | poc |
| KEV Status | Not Listed |
The software does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
An uncontrolled memory allocation vulnerability exists in ag-psd versions prior to 31.0.0. When parsing Adobe Photoshop Document (PSD) files, the readPsd() function reads image dimensions and color depth directly from the file header and allocates off-heap typed arrays without validating whether the requested memory size is proportional to the input stream or bounded by operational thresholds. An unauthenticated attacker can supply a crafted 52-byte PSD payload that triggers an immediate 3.35 GB memory allocation, resulting in process termination via the operating system Out-Of-Memory (OOM) killer.
CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.