Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-45161 EUVD-2026-94331GHSA-xf64-4pmc-h8qfPYSEC-2026-4317

wger: trainer_login accepts GET - CSRF bypass enables forced session rebinding

Published Oct 7, 2026 · Updated Oct 7, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
wger-project wger < 2.6 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI wger <= 2.1 — GHSA-xf64-4pmc-h8qf

References