p PatchFirst

CVE-2026-86256

CVE-2026-86256 · wger before 2.6 Open Redirect via trainer-login next parameter

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

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.

CVSS 5.1 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • wger

    Versions
    • ≥ 0, < 2.6: Affected (custom)
    • 2.6: Not affected (custom)

    Update to 2.6

  • 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.6

    Update to 2.6

Original sources

Check your server →