Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. wger
  4. ›
  5. CVE-2026-45161

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

October 7, 2026

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.

References

  • github.com/advisories/GHSA-xf64-4pmc-h8qf
  • github.com/wger-project/wger/releases/tag/2.6
  • github.com/wger-project/wger/security/advisories/GHSA-xf64-4pmc-h8qf
  • nvd.nist.gov/vuln/detail/CVE-2026-45161

Code Behaviors & Features

Detect and mitigate CVE-2026-45161 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 2.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

pypi/wger/CVE-2026-45161.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:09 +0000.