{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45161","id":"CVE-2026-45161","title":"wger: trainer_login accepts GET - CSRF bypass enables forced session rebinding","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 p","descriptionLong":"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":"2026-10-07T13:35:53.363Z","updated":"2026-10-28T02:30:46.405236397Z","reserved":"2026-05-08T20:44:38.965Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["wger-project wger"],"affectedProducts":[{"vendor":"wger-project","product":"wger","defaultStatus":null,"versions":[{"version":"< 2.6","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"wger","purl":"pkg:pypi/wger","ranges":["<=2.1"],"fixed":[],"advisory":"GHSA-xf64-4pmc-h8qf"}],"cwes":["CWE-352"],"aliases":["GHSA-xf64-4pmc-h8qf","PYSEC-2026-4317"],"references":[{"url":"https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/wger-project/wger/releases/tag/2.6","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45161.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45161","tags":["advisory"]},{"url":"https://github.com/wger-project/wger","tags":["package"]},{"url":"https://pypi.org/project/wger","tags":["package"]},{"url":"https://github.com/advisories/GHSA-xf64-4pmc-h8qf","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00088,"epssPercentile":0.00371,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45161","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45161","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45161","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xf64-4pmc-h8qf","ok":true,"note":"GHSA-xf64-4pmc-h8qf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45161","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}