CVE-2026-45161

Source
https://cve.org/CVERecord?id=CVE-2026-45161
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45161.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45161
Aliases
Published
2026-10-07T13:35:53Z
Modified
2026-10-28T02:30:46Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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 <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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-352"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45161.json"
}
References

Affected packages

Git / github.com/wger-project/wger

Affected ranges

Type
GIT
Repo
https://github.com/wger-project/wger
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "2.6"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "original_tag": "2.6",
            "range": [
                {
                    "fixed": "e1d70bcc38cd56ae4a254dca1713c404d069f319"
                }
            ],
            "source": "REFERENCES_TAG"
        },
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "2.6"
                }
            ],
            "source": "DESCRIPTION"
        }
    ]
}

Affected versions

1.*
1.0
1.0.1
1.0.2
1.0.3
1.1
1.2
1.3
1.4
1.5
1.7
1.8
1.9
2.*
2.0
2.3
2.4
2.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45161.json"