Vulnerability · Published Apr 17, 2026 · Assigned by GitHub_M

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

High 7.6

In plain English

A high-severity improper access control in wger from wger-project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities).

Severity (CVSS 3.1)7.6High
Exploit odds (30 days)0.3%top 73.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIwgerno fix listedGHSA-xppv-4jrx-qf8m
PyPIwgerno fix listedPYSEC-2026-3424

Affected products (as reported)

VendorProductVersions
wger-project wger < 2.5

Weakness: CWE-284, CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

References