Executive brief
wger is an open-source fitness and workout management platform. A security flaw in how the system verifies user permissions allows certain users to bypass security checks and reset the passwords of other accounts. An attacker can use this to gain full control over other users' accounts and lock the original owners out, potentially compromising personal fitness data and system access.
Technical details
The reset_user_password and gym_permissions_user_edit views in wger's gym/views/user.py perform a gym-scope authorization check using Python's inequality operator (!=). When both the attacker and the target user have no gym assigned (gym=None), the comparison 'None != None' evaluates to False, causing the authorization guard to be bypassed. An attacker with 'gym.manage_gym' permissions can trigger a password reset for any other unaffiliated user; the application then generates a new password and returns it in plaintext within the HTML response body. This results in a full account takeover and permanent lockout of the victim. The issue is fixed in version 2.6 by using raw foreign key comparisons and explicit null checks.
Affected products
- wger-project wger < 2.6
Timeline
- 2026-04-28: advisory: GitHub Security Advisory published
- 2026-05-12: disclosed: CVE published to NVD
- 2026-05-12: patched: Vulnerability fixed in version 2.6