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

Published Sep 6, 2026
·
Updated

wger before 2.6 (affected versions <= 2.5.0) contains an open redirect vulnerability in the trainerlogin 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 urlhasallowedhostandscheme(). 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 userpk) via the Referer header.

Affected Software

1 affected component
wger wger<=2.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade wger to a version that resolves this vulnerability.

    Fixed in 2.6

Event History

Sep 6, 2026
CVE Published
via MITRE·12:00 PM
Data Sourced
via MITRE·12:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Authenticated trainers who can enter impersonation mode are exposed if they follow an attacker-crafted link. The redirect occurs in the trainer_login view after impersonation mode is entered.

2

What does an attacker need to exploit it?

An attacker needs to deliver a crafted URL containing a malicious next GET parameter and persuade an authenticated trainer to use it. No interaction from the impersonated user is described.

3

Are default deployments affected?

The issue affects wger versions up to and including 2.5.0, before version 2.6. The provided data does not identify any configuration prerequisite beyond use of the affected trainer impersonation flow.

4

What is the impact of a successful redirect?

The trainer's browser can be redirected to an attacker-controlled domain, supporting phishing. The Referer header may also disclose wger URL structure, including the impersonated user's user_pk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203