Vulnerability · Published Apr 17, 2026 · Assigned by GitHub_M
CVE-2026-40474wger has Broken Access Control in the Global Gym Configuration Update Endpoint
High 7.6
In plain English
A high-severity improper access control in wger from wger-project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | wger | no fix listed | GHSA-xppv-4jrx-qf8m |
| PyPI | wger | no fix listed | PYSEC-2026-3424 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| wger-project | wger | < 2.5 |
Weakness: CWE-284, CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
References
- https://github.com/wger-project/wger/security/advisories/GHSA-xppv-4jrx-qf8m x_refsource_CONFIRM
- https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f x_refsource_MISC
- https://github.com/wger-project/wger/releases/tag/2.5 x_refsource_MISC