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 un…
- CVSS
- 5.4Medium
- Chance of exploitation (EPSS)
- 0.09%
- Published
- Oct 7, 2026
- In the news
- Not yet
What to do
A moderate cross-site request forgery flaw in Wger that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Wger
- < 2.6
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-45161 published (CVSS 5.4) (Oct 7, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Oct 7, 2026
- CVECVE-2026-45161 published (CVSS 5.4)CVE Program · 14:17 UTC
References 2
- github.com /wger-project/wger/releases/tag/2.6
- github.com /wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf