Intel

AIKIDO-2026-114577

craftcms/cms is vulnerable to Improper Authorization

Improper AuthorizationGHSA-p8x7-9vfw-p7vc Published 2 days ago

78

High Risk

This Affects:

PHPcraftcms/cms
5.0.0 - 5.10.7
Fixed in 5.10.8
Are you affected? Scan for Free

TL;DR

The element-save action in Craft CMS treats a User element's new-password field as mass-assignable because its validator is only marked safe with no scenario restriction. This lets any authenticated user set their own password without supplying the current password or an elevated session, bypassing the dedicated set-password flow that enforces session verification. A user holding the edit-users permission can also change other users' passwords, including administrators, enabling account takeover. The fix restricts password assignment to the intended elevated-session flow.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and authenticated control-panel users can save User elements (any user can set their own password without the current password; users with edit-users can change other users' passwords).

Background info

craftcms/cms is vulnerable to Improper Authorization in versions 5.0.0 - 5.10.7.

How to fix this

Upgrade the craftcms/cms library to the patch version.