Background
Vikunja is an open-source, self-hostable task and project manager written in Go with a Vue front end. Teams and individuals organize work into projects, and one server can host many separate users and teams. In security terms each of these groups is a tenant, and one tenant should never see or touch another tenant’s data.
Vikunja has a saved filter feature. A saved filter is a stored query (for example “tasks due this week”) that behaves like a virtual project. Like real projects, it has views such as list, Gantt, table and Kanban, and each view can show tasks in a custom order. Creating a saved filter sets up four default views and then calculates their task order.
Terms used below:
task_positionsis a database table. Each row links one task to one view and records where the task sits in that view’s ordering.- Authorization scope is the set of projects the current user is allowed to access.
- Write amplification is when one small request causes much more database writing than the attacker’s own data justifies.
Summary
When a user with no accessible projects creates a saved filter with an empty expression, its ordering calculation includes tasks from every tenant. The operation writes references to those tasks into the creator’s views, even though the creator cannot read the tasks themselves.
A saved filter is a reusable task query with views that maintain ordering. Each row in task_positions connects a task to a particular view. It is separate from the task’s title, description and read permissions. This separation explains the result: the user-facing task list remains empty, while the background calculation writes database state referencing other tenants’ tasks. The failure occurs during view initialization, before any task content needs to be returned to the caller.
How the Vulnerability Works
The vulnerable code builds a database query from several optional conditions: restrict to the user’s accessible projects, include favorites, apply the saved filter’s expression, and apply a text search. The query builder has a convenient shortcut. If a condition is empty, it is dropped.
That shortcut is correct for “no search text” and fatal for “no accessible projects”. Consider a user whose account has no projects at all, and who creates a saved filter with an empty expression:
project condition: "project is one of []" -> empty, dropped
favorites condition: none -> empty, dropped
filter expression: "" -> empty, dropped
search text: none -> empty, dropped
Remaining query: SELECT every task in the databaseThe system meant “this user may see nothing”. The query builder understood “this query has no restriction”. An empty authorization scope turned into an unlimited one.
The calculation then runs as part of creating the filter. It deletes the view’s old position rows and inserts one row for every task it found, including tasks that belong to other tenants. The user never receives those tasks’ contents, and the API response shows zero tasks, so everything looks normal. The damage is in the database: foreign tasks are now referenced from the attacker’s views, and every new filter writes roughly four rows per task in the whole installation.
Getting an account into the empty state is the odd part of the attack. The proof of concept pointed the account’s default_project_id setting at another project ID, which the server accepts without checking, and then deleted the account’s own Inbox, leaving it with no projects. The flaw itself is a general one: a fail-open authorization default, where the safe answer for “nothing is allowed” was lost.
Prerequisites
The attacker needs an authenticated account with zero accessible projects. The proof of concept reached this state by changing default_project_id (the setting is not validated) and deleting the account’s own Inbox. No victim credentials were required.
This empty scope is essential: an empty filter from an account that still has accessible projects does not reproduce the same unrestricted search. The vulnerable calculation treats the absence of permitted projects as the absence of a project restriction.
Attack Path
- STARTAuthenticated user with no accessible projects
- STEP 01Create a saved filter with an empty expression
Creation initializes four default views and recalculates their task positions.
- STEP 02Search with an empty project scope
The query builder otherwise drops every empty condition and searches all tasks.
MITIGATION Return no tasks when the authorized project set is empty
- STEP 03Insert foreign-task position rows
MITIGATION Check project read access before writing each task reference
- STEP 04Amplify database work and storage
Root Cause
The call chain is SavedFilter.Create → CreateDefaultViewsForProject → RecalculateTaskPositions. For a filter view, recalculation searches using the saved expression and the projects the filter owner can access. Inside dbTaskSearcher.Search, the project, favorites, search and filter conditions are combined by the query builder.
With no accessible projects, no favorites condition and an empty filter and search expression, every condition is empty. The builder discards those conditions, turning “there are no permitted projects” into an unrestricted task search. Recalculation then deletes the view’s old position rows and inserts a row for every returned task. The distinction between an empty authorization scope and an absent query restriction is the central error.
Validation
The proof of concept on v2.6.0 created a private victim project and task, then a separate attacker account. Changing default_project_id allowed the attacker’s own Inbox to be deleted, leaving the required empty project scope. A direct request for the victim project returned HTTP 403 before the attacker created a filter with {"filter":"","filter_include_nulls":true}.
Database inspection, rather than the attacker’s task-list response, established the unauthorized write: the victim task was referenced in each of the attacker’s four new filter views. The read endpoint returned zero tasks, demonstrating why a UI-only check would miss the security consequence.
| Check | Expected secure behavior | Recorded behavior |
|---|---|---|
| Read the victim project | Denied | HTTP 403 |
| Populate a filter with no accessible projects | Create no foreign-task positions | Foreign-task references in four views |
| Read tasks through the attacker’s filter | No victim task content | Zero returned tasks |
Impact
The confirmed consequences are unauthorized cross-tenant references and write amplification. For an instance containing N tasks, creating one filter can add approximately 4 × N position rows because initialization runs for four default views. Repeating the operation increases scans, writes and storage consumption in proportion to the whole installation, rather than the caller’s own data.
The read controls did not expose task contents. The observed integrity failure is the creation of foreign-task references in attacker-owned views. It does not by itself prove that the victim’s normal view ordering changes.
Remediation
Upgrade to Vikunja 2.7.0 or later. The linked patch addresses this finding. The repository advisory page still lists no patched version, so consult the release and patch alongside the report.
Abort recalculation when the accessible-project set is empty, before writing any positions. Also check task access before inserting references, so an incorrectly scoped task collection cannot cause cross-tenant writes.
Add a regression test that creates an empty saved filter from an account with no accessible projects. An account with at least one project retains a project predicate and would miss this failure. An empty authorization scope must return no tasks.
References
- Project repository (https://github.com/go-vikunja/vikunja)
- GitHub security advisory (https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fprf-r6rv-xg99)
- NVD: CVE-2026-111918 (https://nvd.nist.gov/vuln/detail/cve-2026-111918)
- VulnCheck advisory (https://www.vulncheck.com/advisories/vikunja-1.0.0-rc0-before-2.7.0-cross-tenant-task-position-writes-via-saved-filter-creation)
- Vikunja 2.7.0 release (https://github.com/go-vikunja/vikunja/releases/tag/v2.7.0)
- Patch (https://github.com/go-vikunja/vikunja/commit/24e4563a547be182b338be2f614df339a64a6058)