Aug 7, 2026·5 min read·13 visits
A mass assignment flaw in Craft CMS's User model allows authenticated users to modify sensitive internal properties, including password and lockout fields, bypassing security controls to achieve full administrator takeover.
A high-severity authorization bypass vulnerability in Craft CMS allows authenticated users to reset arbitrary user passwords, including administrator accounts, by exploiting a mass assignment vulnerability in the User element model.
Craft CMS uses an element-based design where users, entries, assets, and other content types are modeled as elements. The User element model handles the persistence and manipulation of user accounts, including profiles, authentication parameters, and account states.
During a profile update or user save action, parameters provided via incoming HTTP requests are dynamically bound to the corresponding properties of the underlying User model. This process, known as mass assignment, simplifies model population but introduces significant security risks if user-controlled input is not strictly regulated.
This vulnerability, tracked as GHSA-P8X7-9VFW-P7VC, is a high-severity mass assignment issue (CWE-915) in the User element model. An authenticated user with permission to modify their profile or submit user data can manipulate internal attributes of other accounts or their own account.
This bypasses the typical security verification flows, leading directly to password resets on arbitrary accounts and potential full administrator takeover.
The root cause of this vulnerability lies in the insufficient input filtering within the setAttributesFromRequest method of the User element model located in src/elements/User.php.
When a request to update user details is received, Craft CMS calls setAttributesFromRequest($values) to process raw HTTP parameters before binding them to the model. In the vulnerable version, the method only unset a single parameter, unverifiedEmail, from the input array.
Because the underlying Yii2 framework dynamically maps request inputs to safe model attributes, an attacker could supply other highly sensitive model properties. Since attributes like password, newPassword, lockoutDate, and invalidLoginCount were not explicitly stripped from the $values array, the framework bound them to the User model.
Consequently, when the model was subsequently saved, these values were committed to the database. This allows an attacker to reset credentials or modify security states directly, completely avoiding specialized controllers designed to validate password changes, token lifetimes, or previous passwords.
An inspection of the vulnerable implementation in src/elements/User.php highlights how the mass assignment vulnerability occurred. The system relied on a highly permissive binding model:
// Vulnerable Implementation
public function setAttributesFromRequest($values): void
{
unset($values['unverifiedEmail']);
if (isset($values['email'])) {
$values['email'] = trim($values['email']);
}
// ... continues to bind attributes ...
}In this code path, only unverifiedEmail is explicitly protected from bulk assignment. If a malicious payload containing parameters such as password or lockoutDate was submitted, those keys remained in the $values array and were updated on the user record.
To remediate this, the developer introduced a comprehensive denylist in the patch. The updated setAttributesFromRequest method now unsets all variables tied to credential storage, lockout history, and session validation:
// Patched Implementation
public function setAttributesFromRequest($values): void
{
unset(
$values['invalidLoginCount'],
$values['lastInvalidLoginDate'],
$values['lastLoginAttemptIp'],
$values['lastLoginDate'],
$values['lastPasswordChangeDate'],
$values['lockoutDate'],
$values['newPassword'],
$values['password'],
$values['unverifiedEmail'],
$values['verificationCodeIssuedDate'],
);
if (isset($values['email'])) {
$values['email'] = trim($values['email']);
}
// ... remaining logic ...
}This explicit unset process prevents input parameters representing sensitive attributes from reaching the active record binder, effectively neutralizing the mass-assignment attack vector.
To exploit this vulnerability, an attacker requires an active authenticated session with the ability to submit profile updates or trigger the saving of user elements. This vulnerability does not require administrative privileges to initiate.
The attacker crafts a multipart form-data or JSON payload directed toward the user save endpoint, typically users/save-user or a custom frontend profile update route. Along with the standard profile parameters, the attacker includes malicious inputs targeting sensitive properties.
For example, appending parameters such as password or newPassword with a chosen string causes the backend to update the target account credentials directly. Alternatively, an attacker whose account is locked or restricted could supply parameters like lockoutDate with a null value or invalidLoginCount with zero to bypass brute-force protection mechanisms.
Because the database write operation occurs during the element save process, the target account password is set to the attacker's value immediately. No email verification or token exchange is triggered, allowing seamless account takeover.
The security impact of this vulnerability is classified as high. By targeting the password and credential attributes of other users, an attacker can execute arbitrary user password resets.
If the target is an administrator, the attacker gains full control over the Craft CMS instance. Administrative access to the Craft CMS control panel allows arbitrary PHP code execution through template customization, plugin installation, or system configuration modifications.
Furthermore, the ability to reset security counters like invalidLoginCount and lockoutDate undermines defense-in-depth measures against automated brute-force attacks. This vulnerability allows actors to hide their activities and persist on compromised systems by resetting authentication-related dates.
The CVSS score is estimated at 8.8 (High) under CVSS v3.1, assuming a registered network attacker exploiting low privileges (PR:L) to perform a direct compromise of high-integrity administrative assets (UI:N, S:U, C:H, I:H, A:H).
The primary remediation step is upgrading to Craft CMS version 5.10.8 or later. This release incorporates the security fix that discards sensitive attributes from dynamic request payloads.
If upgrading is delayed, developers should review custom controllers that bind HTTP request data directly to user models. Avoid generic dynamic loading methods like $model->load($_POST) or $model->setAttributes() unless strict allowlists are enforced through Yii2 scenarios or validated parameter sets.
Detection of exploitation attempts can be achieved by monitoring web application firewalls (WAF) or application logs for requests targeting user-save controllers. Payloads containing unexpected parameters such as newPassword, lockoutDate, or invalidLoginCount in non-password-reset contexts represent strong indicators of compromise.
Additionally, audit the application database for anomalous modifications of the lastPasswordChangeDate or unexpected resets of invalidLoginCount that are not accompanied by expected password reset workflows.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H| Attribute | Detail |
|---|---|
| CWE ID | CWE-915 |
| Attack Vector | Network |
| CVSS v3.1 Score | 8.8 |
| Exploit Status | none |
| KEV Status | not listed |
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.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.
CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.