GHSA-P8X7-9VFW-P7VC
Vulnerability from github – Published: 2026-08-06 21:04 – Updated: 2026-08-06 21:04The vulnerability allows any authenticated user to change their own password without providing the current password or having an active elevated session. It also allows the attacker to change other users’ passwords if the attacker’s account has edit users permission (which doesn’t allow changing others’ passwords) and lacks Administrate users permission (which is required to change others’ passwords).
The vulnerability exists in the elements/save action when saving a User element. The UserPasswordValidator applies only a safe validator to the newPassword field without an on scenario restriction. This makes newPassword mass-assignable during the generic element save flow, completely bypassing the dedicated users/set-password action that enforces elevated session verification.
An attacker with any authenticated session (whether it’s hijacked or a normal / low-privileged user) can change their own password, and potentially take over administrator accounts.
Required Permissions
- Access the control panel
- Edit users (needed for the account takeover attack scenario)
Impact
- Any authenticated user can change their own password without providing their current password.
- Users with Edit users permission can change any user’s password, including administrators.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "craftcms/cms"
},
"ranges": [
{
"events": [
{
"introduced": "5.0.0-RC1"
},
{
"fixed": "5.10.8"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-285"
],
"github_reviewed": true,
"github_reviewed_at": "2026-08-06T21:04:11Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "The vulnerability allows any authenticated user to change their own password without providing the current password or having an active elevated session. It also allows the attacker to change other users\u2019 passwords if the attacker\u2019s account has `edit users` permission (which doesn\u2019t allow changing others\u2019 passwords) and lacks `Administrate users` permission (which is required to change others\u2019 passwords).\n\nThe vulnerability exists in the `elements/save` action when saving a User element. The `UserPasswordValidator` applies only a `safe` validator to the `newPassword` field without an `on` scenario restriction. This makes `newPassword` mass-assignable during the generic element save flow, completely bypassing the dedicated `users/set-password` action that enforces elevated session verification.\n\nAn attacker with any authenticated session (whether it\u2019s hijacked or a normal / low-privileged user) can change their own password, and potentially take over administrator accounts.\n\n## Required Permissions\n- Access the control panel\n- Edit users (needed for the account takeover attack scenario)\n\n## Impact\n- Any authenticated user can change their own password without providing their current password.\n- Users with Edit users permission can change any user\u2019s password, including administrators.",
"id": "GHSA-p8x7-9vfw-p7vc",
"modified": "2026-08-06T21:04:11Z",
"published": "2026-08-06T21:04:11Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/craftcms/cms/security/advisories/GHSA-p8x7-9vfw-p7vc"
},
{
"type": "WEB",
"url": "https://github.com/craftcms/cms/commit/cbdf45fbd3ab548b147d7de375f6f6f580b7c294"
},
{
"type": "PACKAGE",
"url": "https://github.com/craftcms/cms"
},
{
"type": "WEB",
"url": "https://github.com/craftcms/cms/releases/tag/5.10.8"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Craft CMS: Arbitrary user password reset leading to administrator account takeover"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.