CVE-2026-33313: Vikunja has an IDOR in Task Comments Allows Reading Arbitrary Comments

Published Mar 20, 2026
·
Updated

An authenticated user can read any task comment by ID, regardless of whether they have access to the task the comment belongs to, by substituting the task ID in the API URL with a task they do have access to.

Details

The GET /api/v1/tasks/{taskID}/comments/{commentID} endpoint performs an authorization check against the task ID provided in the URL path, then loads the comment by its own ID without verifying it belongs to that task.

Root Cause

In pkg/models/taskcommentpermissions.go, CanRead constructs a Task using the TaskID from the URL and checks Task.CanRead:

go func (tc TaskComment) CanRead(s xorm.Session, a web.Auth) (bool, int, error) { t := Task{ID: tc.TaskID} return t.CanRead(s, a) }

In pkg/models/taskcomments.go, getTaskCommentSimple loads the comment by ID only, with NoAutoCondition() explicitly disabling XORM's implicit struct-field filtering:

go func getTaskCommentSimple(s xorm.Session, tc TaskComment) error { exists, err := s. Where("id = ?", tc.ID). NoAutoCondition(). Get(tc) // ... }

The generic web handler (pkg/web/handler/readone.go) calls CanRead before ReadOne, so the permission check passes against the attacker-controlled task ID, and then ReadOne returns the comment from a completely different task.

Attack Scenario

1. Attacker is authenticated and has read access to any task (task ID A) — e.g. their own task. 2. Attacker guesses or enumerates a comment ID (C) belonging to a task in another user's private project. 3. Attacker requests: GET /api/v1/tasks/A/comments/C 4. Authorization passes because the attacker can read task A. 5. The comment C is loaded by ID only and returned, leaking its contents and author.

Credit

This vulnerability was found using GitHub Security Lab Taskflows.

Other sources

Vikunja is an open-source self-hosted task management platform. Prior to version 2.2.0, an authenticated user can read any task comment by ID, regardless of whether they have access to the task the comment belongs to, by substituting the task ID in the API URL with a task they do have access to. Version 2.2.0 fixes the issue.

MITRE

Affected Software

2 affected components
go/code.vikunja.io/api<=2.1.0
Vikunja Vikunja<2.2.0

Event History

Mar 20, 2026
Advisory Published
via GitHub·05:25 PM
Data Sourced
via GitHub·05:25 PM
DescriptionWeaknessAffected Software
Mar 24, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33313?

CVE-2026-33313 has been classified as a high severity vulnerability due to unauthorized access to comments.

2

How do I fix CVE-2026-33313?

To fix CVE-2026-33313, ensure proper access controls are implemented for the API endpoint to restrict access based on task permissions.

3

Who is affected by CVE-2026-33313?

CVE-2026-33313 affects users of the Vikunja API version up to 2.1.0.

4

What is the impact of CVE-2026-33313?

The impact of CVE-2026-33313 allows authenticated users to read comments of tasks they do not have permission to access.

5

Is CVE-2026-33313 exploitable remotely?

Yes, CVE-2026-33313 is remotely exploitable as it involves an API endpoint that can be accessed by authenticated users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203