{"id":"CVE-2026-45161","summary":"wger: trainer_login accepts GET - CSRF bypass enables forced session rebinding","details":"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 `\u003cimg\u003e` 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.","aliases":["GHSA-xf64-4pmc-h8qf","PYSEC-2026-4317"],"modified":"2026-10-15T14:55:46.505518952Z","published":"2026-10-07T13:35:53.363Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45161.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-352"]},"references":[{"type":"WEB","url":"https://github.com/wger-project/wger/releases/tag/2.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45161.json"},{"type":"ADVISORY","url":"https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45161"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wger-project/wger","events":[{"introduced":"0"},{"fixed":"e1d70bcc38cd56ae4a254dca1713c404d069f319"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"2.6"}]}}],"versions":["2.5","2.4","2.3","2.0","1.9","1.8","1.7","1.5","1.4","1.3","1.2","1.1","1.0.3","1.0.2","1.0.1","1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45161.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}