high7.1
CVE-2026-46434
wger: Trainer Privilege Escalation - Improper Privilege Management
Impact
wger is a free, open-source workout and fitness manager. Prior to version 2.6, a user with only the `gym_trainer` permission can deactivate any account in the same gym, including `gym_manager` and `general_gym_manager` accounts. The `UserDeactivateView` grants access to anyone holding any one of `gym.manage_gym`, `gym.manage_gyms`, or `gym.gym_trainer` (OR logic via `WgerMultiplePermissionRequiredMixin`), and performs no privilege-hierarchy check to prevent a lower-privileged role from disabling a higher-privileged one. Version 2.6 fixes the issue.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | wger | <= 2.1 | none recorded |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-x249-cx55-2h87
- https://github.com/wger-project/wger/security/advisories/GHSA-x249-cx55-2h87
- https://github.com/wger-project/wger/releases/tag/2.6
- https://nvd.nist.gov/vuln/detail/CVE-2026-46434
- https://github.com/wger-project/wger/commit/9be2d5f2b4559f9a9d5b3f3b3cdadcfef449f645
- https://github.com/pypa/advisory-database/tree/main/vulns/wger/PYSEC-2026-4316.yaml
- https://pypi.org/project/wger