CVE-2026-45161
MEDIUM 5.4CVSS 3.1wger: trainer_login accepts GET - CSRF bypass enables forced session rebinding
wger is a free, open-source workout and fitness manager. Prior to version 2.6, the trainer_login view in wger accepts GET requests and executes django_login() without any CSRF protection, because Django's CsrfViewMiddleware only enforces tokens on unsafe methods (POST/PUT/PATCH/DELETE). An attacker can embed a single <img> tag on a malicious page; when an authenticated trainer loads that page, their browser auto-issues the GET with the session cookie, forcibly rebinding the trainer's session to an arbitrary user account. Version 2.6 fixes the issue.
- Published
- 7 Oct 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-352
- Also known as
- GHSA-xf64-4pmc-h8qfPYSEC-2026-4317
- Sources
- NVDJSONOSV GHSA-xf64-4pmc-h8qfJSONOSV PYSEC-2026-4317JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | wger | <= 2.1 |
References
- https://github.com/wger-project/wger/releases/tag/2.6 · WEB
- https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf · WEB
- https://github.com/wger-project/wger · PACKAGE
- https://pypi.org/project/wger · PACKAGE
- https://github.com/advisories/GHSA-xf64-4pmc-h8qf · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-45161 · ADVISORY
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 7 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Oct 2026)