Skip to content
Heist/ feed
Medium

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

Type: advisorySource: Official CVE List1 source record

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 `` 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.

Announced Source revision 1
Original source ↗

CVE-2026-45161

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-45161

wger

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "wger-project",
    "product": "wger",
    "versions": [
      {
        "status": "affected",
        "version": "< 2.6"
      }
    ]
  }
]
Related CVEs
CVE-2026-45161

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#12030 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement