# CVE-2026-43978: wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-14T16:16:30.000Z
- Modified: 2026-11-06T00:30:04.024Z
- Also known as: GHSA-9qpr-vc49-hqg2, PYSEC-2026-3420
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- wger-project wger: < 2.6
- wger (PyPI): up to 2.5

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 8.1 High `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> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43978> (advisory)
- <https://github.com/wger-project/wger/commit/19c97822492f9914ccfcebeeda319be4e7562790> (web)
- <https://github.com/advisories/GHSA-9qpr-vc49-hqg2> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/wger/PYSEC-2026-3420.yaml> (web)
- <https://github.com/wger-project/wger> (package)
- <https://pypi.org/project/wger> (package, web)

## Sources

- CVE List: [CVE-2026-43978](https://www.cve.org/CVERecord?id=CVE-2026-43978), CVE Terms of Use, modified 2026-07-17
- GitHub Advisory Database: [GHSA-9qpr-vc49-hqg2](https://github.com/advisories/GHSA-9qpr-vc49-hqg2), CC-BY-4.0, modified 2026-11-06
- NVD: [CVE-2026-43978](https://nvd.nist.gov/vuln/detail/CVE-2026-43978), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3420](https://osv.dev/vulnerability/PYSEC-2026-3420), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-43978 · Whole record: https://cve.day/CVE-2026-43978.json · Rebuilt by cve.day 2026-11-25T22:59:28.448Z
