# CVE-2026-40474

> Vulnerability · severity: **HIGH** (CVSS 7.6).

## 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.

## Key facts

- **CVE ID:** CVE-2026-40474
- **Published:** 2026-04-17
- **CVSS severity:** HIGH
- **CVSS base score:** 7.6
- **CWE codes:** CWE-284, CWE-862

## Affected products

- `wger:wger`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40474

## Citation

> AI Analytics. CVE-2026-40474. Retrieved 2026-07-10 from https://api.ai-analytics.org/cve/CVE-2026-40474. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*