wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-43978
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 07:45 UTC · Revision 1
Source evidence
wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers
core-osv · Original sourcePublished 16 Jul 2026, 22:11 UTC
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.
osv:CVE-2026-43978
Complete source record
{
"id": "5cee158621891317b7fec2a05a7cf14aef24af8ac2056252e180cfde83e3d05c",
"url": "https://osv.dev/vulnerability/CVE-2026-43978",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers",
"summary": "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.",
"evidence": "osv:CVE-2026-43978",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-43978",
"aliases": [
"CVE-2026-43978",
"GHSA-9qpr-vc49-hqg2",
"PYSEC-2026-3420"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wger-project/wger",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e1d70bcc38cd56ae4a254dca1713c404d069f319"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.6"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"2.5",
"2.4",
"2.3",
"2.0",
"1.9",
"1.8",
"1.7",
"1.5",
"1.4",
"1.3",
"1.2",
"1.1",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43978.json"
}
}
],
"modified": "2026-10-28T02:30:26.610186803Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43978.json",
"https://github.com/wger-project/wger/security/advisories/GHSA-9qpr-vc49-hqg2",
"https://nvd.nist.gov/vuln/detail/CVE-2026-43978"
],
"provider_metadata": {
"cwe_ids": [
"CWE-269"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43978.json"
}
},
"related_cves": [
{
"value": "CVE-2026-43978",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493440,
"published_at": "2026-07-16T22:11:57.629+00:00"
}