# CVE-2026-40474: wger has Broken Access Control in the Global Gym Configuration Update Endpoint

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T01:35:16.000Z
- Modified: 2026-07-13T16:42:33.591Z
- Also known as: GHSA-xppv-4jrx-qf8m, PYSEC-2026-3424
- Weaknesses: CWE-284, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- wger-project wger: < 2.5
- wger (PyPI): up to 2.1
- wger wger: before 2.5

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L`
- PyPA Advisory Database: CVSS:3.1 7.6 High `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> (exploit, vendor-advisory, web)
- <https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f> (patch, web)
- <https://github.com/wger-project/wger/releases/tag/2.5> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40474> (advisory)
- <https://github.com/wger-project/wger> (package)
- <https://pypi.org/project/wger> (package)
- <https://github.com/advisories/GHSA-xppv-4jrx-qf8m> (advisory)

## Sources

- CVE List: [CVE-2026-40474](https://www.cve.org/CVERecord?id=CVE-2026-40474), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-xppv-4jrx-qf8m](https://github.com/advisories/GHSA-xppv-4jrx-qf8m), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40474](https://nvd.nist.gov/vuln/detail/CVE-2026-40474), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-3424](https://osv.dev/vulnerability/PYSEC-2026-3424), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40474 · Whole record: https://cve.day/CVE-2026-40474.json · Rebuilt by cve.day 2026-11-25T22:59:18.974Z
