{"id":"CVE-2026-45161","title":"wger is a free, open-source workout and fitness manager","summary":"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 en…","severity":"medium","cvss":5.4,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","cwe":["CWE-352"],"vendor":"wger-project","product":"wger","affected":["wger < 2.6"],"published":"2026-10-07","updated":"2026-10-07","sourceUpdated":"2026-10-07T17:16:55.703","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-45161","references":[{"url":"https://github.com/wger-project/wger/releases/tag/2.6","label":"security-advisories@github.com"},{"url":"https://github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf","label":"security-advisories@github.com"},{"url":"https://github.com/advisories/GHSA-xf64-4pmc-h8qf"},{"url":"https://github.com/wger-project/wger"},{"url":"https://pypi.org/project/wger"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45161"}],"tags":["nvd","cve.org","ghsa","pip","osv"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-07T15:27:05.291626Z"},"aliases":["GHSA-xf64-4pmc-h8qf","PYSEC-2026-4317"],"ecosystem":"pip","ingestedAt":"2026-10-07T14:33:21.954Z","epss":0.00088,"epssPercentile":0.00359,"slug":"CVE-2026-45161","body":"## Overview\n\nwger 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-45161)\n\nAffected packages:\n\n- `wger <= 2.1`\n\nSource: https://github.com/advisories/GHSA-xf64-4pmc-h8qf","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":29.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}