SCA: security update for code.vikunja.io/api (GHSA-fgfv-pv97-6cmj)

high Tenable Cloud Security Plugin ID 440163

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Vikunja is an open-source self-hosted task management platform. Prior to 2.3.0, the TOTP failed-attempt
lockout mechanism is non-functional due to a database transaction handling bug. When a TOTP validation
fails, the login handler in pkg/routes/api/v1/login.go calls HandleFailedTOTPAuth and then unconditionally
rolls back. HandleFailedTOTPAuth in pkg/user/totp.go uses an in-memory counter (key-value store) to track
failed attempts. When the counter reaches 10, it calls user.SetStatus(s, StatusAccountLocked) on the same
database session s. Because the login handler always rolls back after a TOTP failure, the
StatusAccountLocked write is undone. The in-memory counter correctly increments past 10, so the lockout
code executes on every subsequent attempt, but the database write is rolled back every time. This allows
unlimited brute-force attempts against TOTP codes. This vulnerability is fixed in 2.3.0. (CVE-2026-35597)

Solution

Update the code.vikunja.io/api library and its related packages to version 2.3.0 or later.

See Also

https://github.com/advisories/GHSA-fgfv-pv97-6cmj

Plugin Details

Severity: High

ID: 440163

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 4/10/2026

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.39

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-35597

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/10/2026

Vulnerability Publication Date: 4/10/2026

Reference Information

CVE: CVE-2026-35597

cwe: CWE-307