Skip to content

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

MediumCVSS 5.4 EPSS 0.13%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi wger(PyPI) <= 2.1; = 1.1; = 1.1.1; = 1.2 +11 more after 2.1 Fixed
wger-project wger = < 2.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi wger(PyPI) <= 2.1 No fix listed
pypi wger(PyPI) = 1.1 No fix listed
pypi wger(PyPI) = 1.1.1 No fix listed
pypi wger(PyPI) = 1.2 No fix listed
pypi wger(PyPI) = 1.2rc1 No fix listed
pypi wger(PyPI) = 1.3 No fix listed
pypi wger(PyPI) = 1.4 No fix listed
pypi wger(PyPI) = 1.5 No fix listed
pypi wger(PyPI) = 1.6 No fix listed
pypi wger(PyPI) = 1.6.1 No fix listed
pypi wger(PyPI) = 1.7 No fix listed
pypi wger(PyPI) = 1.8 No fix listed
pypi wger(PyPI) = 1.9 No fix listed
pypi wger(PyPI) = 2.0 No fix listed
pypi wger(PyPI) = 2.1 No fix listed
wger-project wger = < 2.6 No fix listed

References