Medium severity · published Oct 7, 2026
CVE-2026-45161
wger: trainer_login accepts GET - CSRF bypass enables forced session rebinding
5.4
CVSS
0.1%
EPSS
No
On KEV
Description
wger is a free, open-source workout and fitness manager. Prior to version 2.6, the `trainer_login` view in wger accepts GET requests and executes `django_login()` without any CSRF protection, because Django's `CsrfViewMiddleware` only enforces tokens on unsafe methods (POST/PUT/PATCH/DELETE). An attacker can embed a single `<img>` tag on a malicious page; when an authenticated trainer loads that page, their browser auto-issues the GET with the session cookie, forcibly rebinding the trainer's session to an arbitrary user account. Version 2.6 fixes the issue.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 0% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WG
wger · wger-project
< 2.6 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-45161
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-45161
x_refsource_CONFIRM
https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf
x_refsource_MISC
https://github.com/wger-project/wger/releases/tag/2.6
More from wger
9.9
CVE-2026-43948
wger: cross-tenant password reset and plaintext disclosure via gym=None bypass
8.1
CVE-2026-43978
wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers
7.6
CVE-2026-40474
wger has Broken Access Control in the Global Gym Configuration Update Endpoint
7.5
CVE-2026-43977
wger IDOR: Authenticated Users Can Read Others' Private Workout Session Data via Template Routine API
7.1
CVE-2026-46434
wger: Trainer Privilege Escalation - Improper Privilege Management
