CVE-2026-45161 Details
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.
A Cross-Site Request Forgery (CSRF) vulnerability has been identified in wger versions prior to 2.6. The issue arises in the 'trainer_login' view, which accepts GET requests and executes 'django_login()' without proper CSRF protection. This vulnerability allows an attacker to embed an image tag on a malicious page. When an authenticated trainer visits that page, their browser automatically sends a GET request with the session cookie, reassigning the trainer's session to an arbitrary user account. The vulnerability is present in all wger instances where the 'gym.gym_trainer' permission is granted to non-admin users.
Users are advised to update wger to version 2.6 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 7, 2026CISA-ADP
Assessed Oct 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wger-project/wger/releases/tag/2.6 | [email protected] | Release NotesVendor |
| https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| wger | < 2.6 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 7, 2026 | CVE Modified | CISA-ADP |
| Oct 7, 2026 | New CVE Received | [email protected] |
Volerion