BuzzPHP
LightDarkSystem

Craft CMS: Arbitrary user password reset leading to administrator account takeover

High severity. Published 6 August 2026. Update craftcms/cms to 5.10.8 or later: composer update craftcms/cms.

Which versions are affected?

PackageAffected versionsFixed in
craftcms/cms (opens in a new tab)>= 5.0.0-RC1, < 5.10.85.10.8

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show craftcms/cms
composer audit

Advisory details

SeverityHigh
Published
Updated
GHSAGHSA-p8x7-9vfw-p7vc (opens in a new tab)
WeaknessCWE-285

What the advisory says

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’ 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.

Source: GHSA-p8x7-9vfw-p7vc (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories