p PatchFirst

CVE-2026-45161

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.4 · Medium · EPSS 0.1% · Public exploit

Published
Updated

Stack: python

Affected products and versions

  • wger

    Versions
    • < 2.6: Affected

    No fix published

  • wger PyPI

    Versions
    • 1.1
    • 1.1.1
    • 1.2
    • 1.2rc1
    • 1.3
    • 1.4
    • 1.5
    • 1.6
    • 1.6.1
    • 1.7
    • 1.8
    • 1.9
    • 2.0
    • 2.1
    Affected ranges
    • ECOSYSTEM: ≤ 2.1

    No fix published

Original sources

Check your server →