Vulnerability · Published Jul 16, 2026 · Assigned by GitHub_M
CVE-2026-43978wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers
High 8.1
In plain English
A high-severity privilege mismanagement 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 18% of all known vulnerabilities).
Official description
wger is a free, open-source workout and fitness manager. In versions prior to 2.6, a gym trainer can escalate their session to any higher-privileged account (gym manager, general manager) by chaining two calls to the trainer-login endpoint. Once a trainer performs a legitimate switch into a low-privileged user, the session flag trainer.identity is set and this flag alone bypasses the permission check on all subsequent trainer-login calls. This grants full gym administration capabilities including viewing all member data, modifying contracts, managing gym configuration, and accessing other trainers' and managers' personal information. This issue has been fixed in version 2.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | wger | no fix listed | GHSA-9qpr-vc49-hqg2 |
| PyPI | wger | no fix listed | PYSEC-2026-3420 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| wger-project | wger | < 2.6 |
Weakness: CWE-269 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/wger-project/wger/security/advisories/GHSA-9qpr-vc49-hqg2 x_refsource_CONFIRM