Skip to content

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

HighCVSS 7.6 EPSS 0.35%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi wger(PyPI) <= 2.1; = 1.1; = 1.1.1; = 1.2 +11 more after 2.1 Fixed
wger < 2.5 2.5 Fixed
wger-project wger = < 2.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi wger(PyPI) <= 2.1 No fix listed
pypi wger(PyPI) = 1.1 No fix listed
pypi wger(PyPI) = 1.1.1 No fix listed
pypi wger(PyPI) = 1.2 No fix listed
pypi wger(PyPI) = 1.2rc1 No fix listed
pypi wger(PyPI) = 1.3 No fix listed
pypi wger(PyPI) = 1.4 No fix listed
pypi wger(PyPI) = 1.5 No fix listed
pypi wger(PyPI) = 1.6 No fix listed
pypi wger(PyPI) = 1.6.1 No fix listed
pypi wger(PyPI) = 1.7 No fix listed
pypi wger(PyPI) = 1.8 No fix listed
pypi wger(PyPI) = 1.9 No fix listed
pypi wger(PyPI) = 2.0 No fix listed
pypi wger(PyPI) = 2.1 No fix listed
wger-project wger = < 2.5 No fix listed
wger < 2.5 2.5

References