wger has Broken Access Control in the Global Gym Configuration Update Endpoint
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| wger-project | wger | before 2.5 | 2.5 | Patch available | CNA |
| — | wger (PyPI) | up to 2.1 | — | No fix listed | GHSA-xppv-4jrx-qf8m |
- wger Vendorwger-project Affected before 2.5 Fixed in 2.5 Patch available CNA
- wger (PyPI) Vendor— Affected up to 2.1 Fixed in — No fix listed GHSA-xppv-4jrx-qf8m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:wger:wger:*:*:*:*:*:*:*:* | before 2.5 | Vulnerable | wger-project |
- cpe:2.3:a:wger:wger:*:*:*:*:*:*:*:* Versions before 2.5 Vulnerable ·wger-project
Remediation
- Fix · CNA wger (wger-project) Fixed in 2.5
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40474
- 2026-10-03 Alias added: GHSA-xppv-4jrx-qf8m
References
More wger-project Wger vulnerabilities
- TI-2022-02450 Improper Restriction of Excessive Authentication Attempts in wger-project/wger CVSS 3.1CRITICAL 9.8
- TI-2026-29128 wger: Stored XSS via Unescaped License Attribution Fields CVSS 4.0MEDIUM 5.1
- TI-2026-22190 wger: IDOR in nutritional_values endpoints exposes private dietary data via direct ORM lookup CVSS 3.1MEDIUM 4.3
- TI-2026-22186 wger: IDOR in RepetitionsConfig and MaxRepetitionsConfig API leak other users' workout data CVSS 3.1MEDIUM 4.3
- TI-2026-22189 wger: IDOR via user-unscoped cache keys on routine API actions exposes workout data CVSS 3.1LOW 3.5
Sources
- CVE-2026-40474 · CVE Program
- CVE-2026-40474 · NVD
- FIRST EPSS
- GHSA-xppv-4jrx-qf8m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences