CVE-2026-55066: High severity go/code.vikunja.io/api vulnerability

Published Aug 28, 2026
·
Updated

Summary

The kanban endpoint POST /api/v1/projects/{project}/views/{view}/buckets/{bucket}/tasks moves a task into a bucket. The task is identified by taskid in the request body. The endpoint's authorization check (TaskBucket.CanUpdate) only verifies that the caller may update the project/view/bucket named in the URL — it never checks any permission on taskid.

Any authenticated user can therefore supply another user's task ID (task IDs are a global, sequential integer space) against a kanban bucket in their own project. The server loads that victim task with no authorization check, returns its full contents in the response, and — when the target bucket is a "done" bucket — writes to the victim task's row.

This is the same vulnerability class Vikunja has already remediated for task relations (CVE-2026-33676), task attachments (CVE-2026-33678), task comments (CVE-2026-33313) and CalDAV task read (CVE-2026-35598). TaskBucket is the task-child operation that was missed.

---

Root cause

1. taskid is body-controlled and never permission-checked

pkg/models/kanbantaskbucket.go:32:

type TaskBucket struct { BucketID int64 ... json:"bucketid" param:"bucket" TaskID int64 ... json:"taskid" // body-bound only — no param tag ProjectViewID int64 ... json:"projectviewid" param:"view" ProjectID int64 xorm:"-" json:"-" param:"project" ... }

The web handler UpdateWeb (pkg/web/handler/update.go) populates the struct via ctx.Bind, which binds both URL path params (param: tags) and the JSON body. BucketID, ProjectViewID, ProjectID come from the trusted URL; TaskID comes entirely from the attacker-controlled body.

2. CanUpdate authorizes the URL, not the task

pkg/models/kanbantaskbucket.go:52:

func (b TaskBucket) CanUpdate(s xorm.Session, a web.Auth) (bool, error) { bucket := Bucket{ID: b.BucketID, ProjectID: b.ProjectID, ProjectViewID: b.ProjectViewID} return bucket.canDoBucket(s, a) }

canDoBucket (pkg/models/kanbanpermissions.go:46) resolves the bucket/view and ends in Project{ID: pv.ProjectID}.CanUpdate(s, a) — a permission check on the project from the URL. b.TaskID is never referenced. The attacker owns that project, so the check passes.

3. The task is loaded and mutated with no authorization

updateTaskBucket (pkg/models/kanbantaskbucket.go:119):

task := &Task{ID: b.TaskID} err = task.ReadOne(s, a) // loads ANY task by ID — no permission check

Task.ReadOne (pkg/models/tasks.go:1967) calls GetTaskByIDSimple + addMoreInfoToTasks; it performs no authorization (authorization normally lives in the separate Task.CanRead, which this internal call path bypasses).

- Read: the fully populated victim task is assigned to b.Task (line 227) and returned by the Update handler in the response "task" field. - Write: if the target bucket is the view's done bucket (view.DoneBucketID == b.BucketID && !task.Done, line 141), the handler sets task.Done = true and persists it to the victim's task row:

, err = s.Where("id = ?", task.ID). Cols("done", "duedate", "startdate", "enddate", "doneat"). Update(task)

---

Proof of Concept

The attacker is any normal authenticated user. They first create their own kanban project/view/bucket (free for every user), then:

POST /api/v1/projects/{ATTACKERPROJECT}/views/{ATTACKERVIEW}/buckets/{ATTACKERBUCKET}/tasks HTTP/1.1 Host: TARGET Authorization: Bearer {ATTACKERJWT} Content-Type: application/json

{"taskid": {VICTIMTASKID}}

The 200 response body contains the victim task in full under "task" — title, description, dates, assignees, labels, attachment list, reactions. Task IDs are a global sequential counter, so iterating taskid enumerates every task on the instance.

If ATTACKERBUCKET is the done bucket of ATTACKERVIEW, the same request also flips the victim task to done (done = true, doneat set).

---

Impact

Any authenticated low-privilege user can:

- Read any task on the instance by sequential ID, across every other user, project and organization — a full cross-tenant information disclosure of task titles, descriptions, assignees, labels and attachment metadata. - Modify any task's done state, marking arbitrary victims' tasks done (or clearing it) and altering doneat.

Vikunja's permission model is built specifically to isolate projects between users; this endpoint defeats that isolation. It is the same impact and class that warranted CVEs for task relations, attachments and comments.

---

Suggested fix

In TaskBucket.CanUpdate, after the bucket/project check, also verify the caller's permission on the body-supplied task — mirroring the remediation already applied to task relations and attachments:

task := &Task{ID: b.TaskID} canUpdateTask, err := task.CanUpdate(s, a) if err != nil || !canUpdateTask { return false, err }

(Use CanRead if moving a readable-but-not-writable task into a bucket is intended; CanUpdate is the safer default since the operation can change the task's done state.)

---

References

- CWE-639 Authorization Bypass Through User-Controlled Key - CWE-284 Improper Access Control - OWASP A01:2021 Broken Access Control - CVE-2026-33676, CVE-2026-33678, CVE-2026-33313, CVE-2026-35598 — the same missing-authorization-on-task-child class, already remediated; this report is the un-remediated TaskBucket sibling.

Additional notes

- The v2 API is affected too. The same endpoint is exposed under /api/v2/..., and both versions route through the shared model TaskBucket.CanUpdate / updateTaskBucket in pkg/models/kanbantaskbucket.go. A model-level fix closes v1 and v2 simultaneously; the regression test should assert both.

- Two fix altitudes. The minimal fix checks the body-supplied taskid in TaskBucket.CanUpdate (task.CanUpdate/CanRead). A broader fix makes Task.ReadOne itself permission-aware, which also hardens other internal call paths that rely on it — higher blast radius, weigh accordingly.

- Side effects of the cross-tenant write confirmed across reports: flipping done rewrites doneat/duedate/startdate/enddate, inserts a taskbuckets row, propagates done-state to other kanban views with a done bucket in the victim's project, and triggers updateDone rescheduling for repeating tasks.

Affected Software

1 affected componentFixes available
go/code.vikunja.io/api<=2.3.0
2.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/code.vikunja.io/api to a version that resolves this vulnerability.

    Fixed in 2.4.0

Event History

Aug 28, 2026
Advisory Published
via GitHub·04:52 PM
Data Sourced
via GitHub·04:52 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What access does an attacker need to exploit this issue?

The attacker must be authenticated and able to update a project, view, and bucket specified in the request URL. They can use a bucket in their own project; no permission on the task identified by the request body is checked.

2

How could an attacker target another user's task?

Task IDs are global sequential integers, so an authenticated attacker can supply another user's task ID in the request body. The server loads that task without an authorization check and returns its full contents in the response.

3

Can this vulnerability alter data, or only disclose it?

It can disclose the full contents of an unauthorized task. If the attacker moves the task to a bucket configured as a done bucket, the server also writes to the victim task's row.

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