wger: Privilege escalation via trainer-login session chaining allows gym trainer to impersonate gym manager
Affects wgerSource GCVE Database
Not known to be exploited · CVSS 8.1 High.
Data as of 6 Nov 2026, 01:20 UTC
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIwger | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The root cause is a logical error in the permission check condition in wger/core/views/user.py. Remediation requires correcting the permission check logic to ensure that the session flag 'trainer.identity' does not bypass permission verification and that the target-user protection applies correctly regardless of session state. Until a fix is released, restrict trainer account privileges and monitor for suspicious trainer-login activity.
Description
A privilege escalation vulnerability in wger allows a gym trainer to impersonate higher-privileged accounts such as gym managers by chaining calls to the trainer-login endpoint. This occurs because a session flag set during a legitimate trainer login bypasses permission checks on subsequent trainer-login calls, enabling unauthorized account switching. The flaw is due to a logical error in the permission check condition in the source code. Exploiting this vulnerability grants full gym administration capabilities including access to sensitive member data and management functions.
References
- github.com/wger-project/wger/security/advisories/GHSA-9qpr-vc49-hqg2 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-43978 (opens in a new tab)
- github.com/wger-project/wger/commit/19c97822492f9914ccfcebeeda319be4e7562790 (opens in a new tab)
- github.com/advisories/GHSA-9qpr-vc49-hqg2 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/wger/PYSEC-2026-3420.yaml (opens in a new tab)
- github.com/wger-project/wger (opens in a new tab)
- pypi.org/project/wger (opens in a new tab)