---
id: CVE-2026-45161
title: 'wger is a free, open-source workout and fitness manager'
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 en…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-352
vendor: wger
product: wger
affected:
  - wger <= 2.1
published: '2026-10-07'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T14:46:03.387'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-45161'
references:
  - url: 'https://github.com/wger-project/wger/releases/tag/2.6'
    label: security-advisories@github.com
  - url: >-
      https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-xf64-4pmc-h8qf'
tags:
  - nvd
  - ghsa
  - pip
  - cve.org
aliases:
  - GHSA-xf64-4pmc-h8qf
ecosystem: pip
ingestedAt: '2026-10-07T14:33:21.954Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-45161)

Affected packages:

- `wger <= 2.1`

Source: https://github.com/advisories/GHSA-xf64-4pmc-h8qf
