What’s Vulnerable › Vulnerabilities
CVE-2026-40474: wger has Broken Access Control in the Global Gym Configuration Update Endpoint
- Severity: high (CVSS 7.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-04-17 · updated 2026-06-17
- Weakness: CWE-284
Description
wger is a free, open-source workout and fitness manager. In versions 2.5 and below, the GymConfigUpdateView declares permission_required = 'config.change_gymconfig' but inherits WgerFormMixin instead of WgerPermissionMixin, so the permission is never enforced at runtime. Since GymConfig is an ownerless singleton, any authenticated user can modify the global gym configuration, triggering save() side effects that bulk-update user profile gym assignments — a vertical privilege escalation to installation-wide configuration control. This issue is fixed in version 2.5.
Affected products
- wger-project wger: before 2.5 — fixed in 2.5
How to fix
Upgrade to a fixed version: wger-project wger 2.5. Check the vendor advisory for mitigations.
References
- https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f
- https://github.com/wger-project/wger/releases/tag/2.5
- https://github.com/wger-project/wger/security/advisories/GHSA-xppv-4jrx-qf8m
Get alerted when CVE-2026-40474 or the next vulnerability affects your stack