# Poweradmin: API user-update endpoint leads to a non-admin reset any user's password and take over the superuser account

High severity, published 2026-07-24. Update poweradmin/poweradmin to the fixed version of your branch (4.2.5, 4.3.4): composer update poweradmin/poweradmin.

Canonical URL: https://buzzphp.com/security/ghsa-h4hf-v6w5-897x · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-07-24 |
| Updated | 2026-07-24 |
| GHSA | [GHSA-h4hf-v6w5-897x](https://github.com/advisories/GHSA-h4hf-v6w5-897x) |
| Weakness | CWE-620, CWE-862 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| poweradmin/poweradmin | >= 4.0.0, < 4.2.5 or >= 4.3.0, < 4.3.4 | 4.2.5, 4.3.4 |

## What to do

Update poweradmin/poweradmin to the fixed version of your branch (4.2.5, 4.3.4): composer update poweradmin/poweradmin.

Check which version you run with `composer show poweradmin/poweradmin`, and every affected package with `composer audit`.

## About this advisory

Summary

The REST API user-update endpoint (PUT/PATCH /api/v2/users/{id} and the V1 equivalent) does not enforce two authorization rules that the web interface enforces. A user who holds the usereditothers permission but is not a superuser can:

1. edit user accounts that belong to a superuser, and 2. set the password of any account, even without the userpasswdeditothers permission.

Because of this, a non-admin "user manager" role can send a single API request that changes the administrator's password, then log in as the administrator. This is a full privilege escalation and account takeover.

## Links

- [GHSA-h4hf-v6w5-897x on GitHub](https://github.com/advisories/GHSA-h4hf-v6w5-897x)
- [All Composer security advisories](https://buzzphp.com/security)
