Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. wger
  4. ›
  5. CVE-2026-43978

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

May 14, 2026

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, allowing the trainer to hop into any account including gym managers.

References

  • github.com/advisories/GHSA-9qpr-vc49-hqg2
  • github.com/wger-project/wger/security/advisories/GHSA-9qpr-vc49-hqg2
  • nvd.nist.gov/vuln/detail/CVE-2026-43978

Code Behaviors & Features

Detect and mitigate CVE-2026-43978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.5.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

pypi/wger/CVE-2026-43978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:45 +0000.