GHSA-p8x7-9vfw-p7vc: Composer/craftcms/cms vulnerability

Published Aug 6, 2026
·
Updated

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

1 affected componentFixes available
composer/craftcms/cms>=5.0.0-RC1<5.10.8
5.10.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 5.10.8
  2. Configuration

    Update the UserPasswordValidator so that the `newPassword` field is not mass-assignable in the `elements/save` flow (add scenario restriction for the safe validator / restrict when newPassword can be set), thereby forcing the generic save path to use the dedicated password-setting logic that requires elevated session verification.

    UserPasswordValidator newPassword validation (scenario restriction) = Apply safe validator to newPassword with an on scenario restriction
  3. Compensating control

    Restrict the control panel and user-management functions to trusted administrators by enforcing access controls so only authorized users can perform password changes (e.g., limit the ability to edit users/admin accounts).

Event History

Aug 6, 2026
Advisory Published
via GitHub·09:04 PM
Data Sourced
via GitHub·09:04 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203