Vikunja IDOR Vulnerability in Task Comments Allows Unauthorized Comment Access

Vulnerability

An authenticated user in Vikunja versions prior to 2.2.0 can exploit an Insecure Direct Object Reference (IDOR) vulnerability to read any task comment by ID. This is possible by replacing the task ID in the API URL with one they have access to, regardless of whether they are authorized to view the comment's associated task. The vulnerability arises because the API endpoint for fetching comments does not properly verify that a comment belongs to the specified task before returning it.

Impact

Exploitation of this vulnerability allows for unauthorized access to task comments, potentially leaking sensitive information such as comment content and authorship.

Reproduction

To reproduce this vulnerability, an authenticated user with access to at least one task can send a request to the 'GET /api/v1/tasks/{taskID}/comments/{commentID}' endpoint. By substituting '{taskID}' with a task they have access to and '{commentID}' with the ID of a comment belonging to a different task, the user can bypass authorization checks and read comments they should not have access to.

Remediation

Users are advised to update Vikunja to version 2.2.0 or later, where this vulnerability has been fixed.

Added: Mar 24, 2026, 3:25 PM
Updated: Mar 24, 2026, 3:25 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
6.3
remediation
0.0
relevance
4.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.