Description
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.
Published: 2026-09-06
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability stems from an open redirect in the trainer_login view of the wger application. After a trainer activates impersonation, the view issues an HttpResponseRedirect to the URL supplied by the user-supplied 'next' parameter without validating it against allowed host and scheme restrictions. The flaw is classified as CWE‑601 and allows an attacker to redirect an authenticated trainer’s browser to an arbitrary external domain, facilitating phishing attempts and leaking the wger URL structure—including the impersonated user’s primary key—via the Referer header.

Affected Systems

Affected systems are the wger web service developed by wger‑project. All releases up to and including version 2.5.0 contain the issue; new releases starting at 2.6 have removed the vulnerable code path.

Risk and Exploitability

The CVSS score is 5.1, which denotes a medium severity impact. With the attack confined to authenticated trainer users and requiring a crafted link, the likelihood of exploitation is moderate, although the EPSS score is not currently available. The vulnerability is not listed in the CISA KEV catalog, indicating no publicly known widespread exploitation. An attacker can leverage the flaw by delivering a malicious link to a trainer, leading to unauthorized redirection and possible credential compromise or phishing.

Generated by OpenCVE AI on September 6, 2026 at 13:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the wger installation to version 2.6 or later to eliminate the vulnerable logic.
  • If an upgrade is not immediately possible, modify the trainer_login view to validate the 'next' parameter using url_has_allowed_host_and_scheme() or restrict allowed redirects to internal paths.
  • Alternatively, disable the impersonation feature until a fixed version is deployed, ensuring trainer_login does not perform external redirects.

Generated by OpenCVE AI on September 6, 2026 at 13:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 06 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Description 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.
Title wger before 2.6 Open Redirect via trainer-login next parameter
First Time appeared Wger
Wger wger
Weaknesses CWE-601
CPEs cpe:2.3:a:wger:wger:*:*:*:*:*:*:*:*
Vendors & Products Wger
Wger wger
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-06T12:00:30.256Z

Reserved: 2026-09-06T11:35:19.317Z

Link: CVE-2026-86256

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-06T12:17:16.567

Modified: 2026-09-06T12:17:16.567

Link: CVE-2026-86256

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-06T13:30:07Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')