---
id: CVE-2026-86256
title: >-
  wger before 2.6 (affected versions <= 2.5.0) contains an open redirect
  vulnerability in the trainer_login view (wger/core/views/user.py)
summary: >-
  wger before 2.6 (affected versions <= 2.5.0) contains an open redirect
  vulnerability in the trainer_login view (wger/core/views/user.py). After a
  trainer enters impersonation mode, the view redirects to the user-supplied
  'next' GET param…
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-601
vendor: wger-project
product: wger
affected:
  - wger < 2.6
published: '2026-09-06'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T14:17:22.100'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86256'
references:
  - url: >-
      https://github.com/wger-project/wger/security/advisories/GHSA-vqv8-j3mj-wjxj
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/wger-before-2.6-open-redirect-via-trainer-login-next-parameter
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/wger-project/wger/security/advisories/GHSA-vqv8-j3mj-wjxj
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/wger-project/wger'
tags:
  - nvd
  - cve.org
  - exploit-available
  - osv
  - pip
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-09T13:59:00.688174Z'
epss: 0.0018
epssPercentile: 0.0788
ingestedAt: '2026-09-07T04:04:50.761Z'
aliases:
  - GHSA-vqv8-j3mj-wjxj
ecosystem: pip
patched:
  - wger 2.6
---

## Overview

wger before 2.6 (affected versions <= 2.5.0) contains an open redirect vulnerability in the trainer_login view (wger/core/views/user.py). After a trainer enters impersonation mode, the view redirects to the user-supplied 'next' GET parameter via HttpResponseRedirect() without validating it with url_has_allowed_host_and_scheme(). An attacker who delivers a crafted link to an authenticated trainer can redirect the trainer's browser to an attacker-controlled domain, enabling phishing and leaking the wger URL structure (including the impersonated user's user_pk) via the Referer header.

## Remediation

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

## Package advisory (CVE-2026-86256)

Affected packages:

- `wger < 2.6`

Patched in:

- `wger 2.6`

Source: https://osv.dev/vulnerability/GHSA-vqv8-j3mj-wjxj
