Skip to main content
← All vulnerabilities
CVE-2026-45161PYSEC-2026-4317GHSA-XF64-4PMC-H8QF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • wger-project wger

    fixed in 2.6

  • wgerPyPI

    through 2.1

References 2

GitHub · wger-project/wger