Executive Summary
A login cross-site request forgery (CSRF) vulnerability exists in Vikunja 2.0.0 before 2.7.1, allowing an attacker to switch a victim's account to the attacker's account by luring the victim to a malicious page. This vulnerability has a CVSS score of 4.6 and is classified as MEDIUM severity. The vulnerability affects Vikunja versions 2.0.0 to 2.7.1.
Technical Analysis
The vulnerability class is Cross-Site Request Forgery (CSRF). The attack vector involves an attacker with an account luring a victim to a page posting the attacker's credentials or OIDC code, which is then used to switch the victim into the attacker's account. The vulnerable component is the /api/v2 login and OIDC callback endpoints, which accept form-encoded bodies without CSRF or Origin checks.
How It Gets Exploited
An attacker with an existing account on the Vikunja platform can exploit this vulnerability by creating a malicious webpage that posts the attacker's credentials or OIDC code to the /api/v2 login or OIDC callback endpoints. The attacker then lures a victim to this webpage, perhaps through a phishing email or social engineering tactics. When the victim visits the webpage, their browser makes a request to the vulnerable endpoints with the attacker's credentials or OIDC code, effectively switching the victim's account to the attacker's account without the victim's knowledge or consent. The attacker can then access and expose data that the victim adds to their account.
Impact Assessment
The vulnerability affects Vikunja versions 2.0.0 to 2.7.1. An attacker can achieve account takeover and data exposure. The CVSS score for this vulnerability is 4.6, indicating a MEDIUM severity level. The attack complexity is LOW, and the privileges required are LOW, but user interaction is REQUIRED.
Recommended Actions
Update Vikunja to version 2.7.1 or later to mitigate this vulnerability. Implement CSRF checks for the /api/v2 login and OIDC callback endpoints. Monitor for suspicious activity on your Vikunja instance, especially account login attempts from unknown locations.
Sources
- National Vulnerability Database (NVD)
- https://nvd.nist.gov/vuln/detail/CVE-2026-123495
- https://github.com/go-vikunja/vikunja/security/advisories/GHSA-frf4-3prf-3vch
- https://www.vulncheck.com/advisories/vikunja-2.0.0-before-2.7.1-login-csrf-via-api-v2-login-and-oidc-callback