PT-2026-107509

CVE-2026-45161

·

Published

2026-10-07

·

Updated

2026-10-15

Description by

CVSS 3.1
5.4
Medium
MetricsAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions wger versions prior to 2.6
Description The trainer login view in wger is susceptible to Cross-Site Request Forgery (CSRF), a condition where a malicious site tricks a user's browser into performing an unwanted action on a different website. This occurs because the view accepts GET requests and executes the django login() function without CSRF protection, as the CsrfViewMiddleware only enforces tokens on unsafe methods such as POST, PUT, PATCH, and DELETE.
An attacker can embed an <img> tag on a malicious page that, when loaded by an authenticated trainer, triggers a GET request to the affected endpoint. This forcibly rebinds the trainer's session to an arbitrary user account. The issue can be exploited via the following endpoint:
  • GET /en/user/<user pk>/trainer-login
The process involves the user pk variable to specify the target account. Furthermore, a redirect chain using the next variable can be used to bypass SameSite cookie restrictions and redirect the user to an external domain.
Recommendations Update wger to version 2.6. As a temporary mitigation, restrict access to the trainer login function to only allow POST requests.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-XF64-4PMC-H8QF
PYSEC-2026-4317
Found an issue in the description? Have something to add? Feel free to write us 👾