# CVE-2026-45161: wger: trainer_login accepts GET - CSRF bypass enables forced session rebinding

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-10-07T13:35:53.363Z
- Modified: 2026-10-15T14:55:46.505Z
- Also known as: GHSA-xf64-4pmc-h8qf, PYSEC-2026-4317
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- wger-project wger: < 2.6
- wger (PyPI): up to 2.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf> (web)
- <https://github.com/wger-project/wger/releases/tag/2.6> (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)

## Sources

- CVE List: [CVE-2026-45161](https://www.cve.org/CVERecord?id=CVE-2026-45161), CVE Terms of Use, modified 2026-10-07
- GitHub Advisory Database: [GHSA-xf64-4pmc-h8qf](https://github.com/advisories/GHSA-xf64-4pmc-h8qf), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-45161](https://nvd.nist.gov/vuln/detail/CVE-2026-45161), Public domain, modified 2026-10-07
- PyPA Advisory Database: [PYSEC-2026-4317](https://osv.dev/vulnerability/PYSEC-2026-4317), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-45161 · Whole record: https://cve.day/CVE-2026-45161.json · Rebuilt by cve.day 2026-11-25T22:59:43.031Z
