Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. GHSA-p8x7-9vfw-p7vc

GHSA-p8x7-9vfw-p7vc: Craft CMS: Arbitrary user password reset leading to administrator account takeover

August 6, 2026

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.

References

  • github.com/advisories/GHSA-p8x7-9vfw-p7vc
  • github.com/craftcms/cms/commit/cbdf45fbd3ab548b147d7de375f6f6f580b7c294
  • github.com/craftcms/cms/releases/tag/5.10.8
  • github.com/craftcms/cms/security/advisories/GHSA-p8x7-9vfw-p7vc

Code Behaviors & Features

Detect and mitigate GHSA-p8x7-9vfw-p7vc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0-RC1 before 5.10.8

Fixed versions

  • 5.10.8

Solution

Upgrade to version 5.10.8 or above.

Weakness

  • CWE-285: Improper Authorization

Source file

packagist/craftcms/cms/GHSA-p8x7-9vfw-p7vc.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:03 +0000.