High severity · published Apr 17, 2026
CVE-2026-40474
wger has Broken Access Control in the Global Gym Configuration Update Endpoint
7.6
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
High
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 26% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WG
wger · wger-project
< 2.5 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40474
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-40474
Patch
https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f
Release Notes
https://github.com/wger-project/wger/releases/tag/2.5
Exploit
https://github.com/wger-project/wger/security/advisories/GHSA-xppv-4jrx-qf8m
More from wger
9.9
CVE-2026-43948
wger: cross-tenant password reset and plaintext disclosure via gym=None bypass
8.1
CVE-2026-43978
wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers
7.5
CVE-2026-43977
wger IDOR: Authenticated Users Can Read Others' Private Workout Session Data via Template Routine API
7.1
CVE-2026-46434
wger: Trainer Privilege Escalation - Improper Privilege Management
7.1
CVE-2026-43976
wger: cross-tenant admin notes/contracts leak via gym=None bypass (5 views)
