GHSA-fmmf-xq98-g327 CVE-2026-111921 GO-2026-6730
Vikunja: Write-level project members can delete admin-tier link shares through an unloaded permission check
- Severity
- 0.0 / 10
- Medium · CVSS 4.0
- Exploit chance (EPSS)
- 0.21%
- Chance of exploitation in the next 30 days. Higher than 11.63% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-863 Incorrect Authorization
- Fix
2.7.0- Upgrade code.vikunja.io/api to this version or later
Description
Summary
A project member with Write permission can delete an admin-tier link share on that project. The deletion authorization check reads the permission from an object populated only with URL IDs, rather than from the stored share. Its zero value is Read, so the check falls through to project Write permission instead of requiring Admin.
Details
Affected endpoints:
DELETE /api/v1/projects/{project}/shares/{share}DELETE /api/v2/projects/{project}/shares/{share}
Older v1 releases used /lists/{list}/shares/{share} before lists were renamed to projects.
In pkg/routes/api/v2/link_sharing.go:156, the delete handler passes &models.LinkSharing{ID: in.ID, ProjectID: in.ProjectID} to handler.DoDelete. The v1 generic handler likewise binds the URL IDs without loading the stored share.
pkg/web/handler/core.go:185 calls CanDelete before Delete. LinkSharing.CanDelete delegates to canDoLinkShare in pkg/models/link_sharing_permissions.go. That helper loads the project but does not load the link share, then evaluates:
if share.Permission == PermissionAdmin {
return l.IsAdmin(s, a)
}
return l.CanWrite(s, a)
On deletion, share.Permission is its Go zero value, PermissionRead (0), even when the stored share grants PermissionAdmin (2). A Write member therefore passes authorization. LinkSharing.Delete subsequently deletes by share ID and project ID without checking the stored permission.
Create uses the requested permission and correctly rejects Write members creating admin shares. Share listing and by-ID reads are admin-gated in current main. There is no HTTP update route for link shares. Read-only members and link-share principals are rejected on deletion.
Affected versions and verification
The admin-tier check was introduced in commit 56dbb564eae83f2453efd1049f55e9d099b5d346, first included in v0.13, without loading the stored share on deletion. The affected range established by this review is >= 0.13.0, <= 2.6.0; versions before v0.13 have not been assessed here. The v2 route was added in b10768506, first included in v2.4.0.
The reporter states that both API versions were verified live against a local source build at a881ac39eecd07575a5aede8e74727c28d5fd578 on September 7, 2026. Maintainer-side source review confirmed the mechanism in that commit, release v2.6.0, and upstream main at a1a6ca48be142902f09fee62734310cb98a8c414. The live proof of concept was not independently rerun during this triage. No patched version is available at draft creation.
Impact
A Write collaborator can revoke an admin-tier access link on a project they can already write to. New consumers can no longer authenticate with that link. In versions with database-backed link-share JWT validation, deleting the share also immediately invalidates its existing sessions; the reporter observed HTTP 404 for a new hash exchange and HTTP 401 for an existing share token.
This is a bounded integrity and availability impact on external access to that project. It does not disclose data, grant Admin privileges, allow deletion of another project's shares, or permit the attacker to create a replacement admin share. The attacker must know or guess the numeric share ID; IDs are sequential.
Severity: Medium. CWE-863: Incorrect Authorization.
Proof of concept
Use two regular accounts on an instance you control. Let OWNER_TOKEN and WRITER_TOKEN be their session tokens. Create a project as the owner, grant the second account Write permission (permission: 1), and create an admin-tier share as the owner (permission: 2). Let PROJECT_ID and SHARE_ID identify that project and share.
First, verify that the Write member cannot create an admin-tier share:
curl -i -X POST "$BASE/api/v2/projects/$PROJECT_ID/shares" \
-H "Authorization: Bearer $WRITER_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"permission":2}'
# Expected and reported: 403
Delete the owner's admin-tier share as the same Write member:
curl -i -X DELETE "$BASE/api/v2/projects/$PROJECT_ID/shares/$SHARE_ID" \
-H "Authorization: Bearer $WRITER_TOKEN"
# Reported: 204; expected: 403 and the share remains intact
Recreate the admin-tier share as the owner and repeat with the v1 endpoint:
curl -i -X DELETE "$BASE/api/v1/projects/$PROJECT_ID/shares/$SHARE_ID" \
-H "Authorization: Bearer $WRITER_TOKEN"
# Reported: 200 with {"message":"Successfully deleted."}; expected: 403
With the collaborator downgraded to Read, deletion returns 403. These positive and negative controls were reported as verified live by the reporter.
Recommended fix
For deletion, load the stored share scoped to both the requested share ID and project ID before authorizing. Require project Admin when the stored permission is Admin, and retain the intended Write rule for ordinary read/write shares. Preserve the existing cross-project constraint.
Keep creation authorization based on the requested tier. If update support is added, check both the stored tier and the requested new tier so neither demotion nor promotion can bypass the admin check.
Add regression coverage for a Write member being forbidden to delete an admin-tier share, an Admin being allowed, intended ordinary-share deletion, rejection of Read members and link-share principals, and mismatched project/share IDs. Cover both API versions.
Related advisories
- GHSA-f95f-77jx-fcjc / CVE-2026-33700 addressed cross-project deletion. Fix
654d2c704constrained deletion byproject_idbut did not change the permission-tier check. - GHSA-qfwc-vx6f-3g6g addressed share-hash disclosure through by-ID reads.
- GHSA-8hp8-9fhr-pfm9 addressed share-hash disclosure through listing.
- GHSA-96q5-xm3p-7m84 / CVE-2026-35594 addressed tokens remaining valid after deletion. That fix does not prevent unauthorized deletion.
Credit
Reported via mail.
Affected versions
Go
| Package | Vulnerable | Fixed in |
|---|---|---|
| code.vikunja.io/api | >= 0.13.0, < 2.7.0 |
2.7.0 |
| code.vikunja.io/api | all versions |
No fix yet |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
code.vikunja.io/api Go → 2.7.0
- go
go get code.vikunja.io/api@v2.7.0 && go mod tidy
Severity breakdown
CVSS 4.0 0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality (vulnerable system)
- None
- Integrity (vulnerable system)
- Low
- Availability (vulnerable system)
- Low
- Confidentiality (subsequent systems)
- None
- Integrity (subsequent systems)
- None
- Availability (subsequent systems)
- None
CVSS 3.1 5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Weakness
CWE-863: Incorrect Authorization
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
How to prevent it
- Architecture and Design: Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
- Architecture and Design: Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].
- Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using authorization frameworks such as the JAAS Authorization Framework [REF-233] and the OWASP ESAPI Access Control feature [REF-45].
- Architecture and Design: For web applications, make sure that the access control mechanism is enforced correctly at the server side on every page. Users should not be able to access any unauthorized functionality or information by simply requesting direct access to that page. One way to do this is to ensure that all pages containing sensitive information are not cached, and that all such pages restrict access to requests that are accompanied by an active and authenticated session token associated with a user who has the required permissions to access that page.
- System Configuration, Installation: Use the access control capabilities of your operating system and server environment and define your access control lists accordingly. Use a "default deny" policy when defining these ACLs.
References
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-m687-p538-r5hp Vikunja: Permissive Cross-domain Security Policy trusts every localhost origin which should not be trusted | Medium | Also affects code.vikunja.io/api |
| GHSA-pjr3-86v4-5p7w Vikunja: Explicit lower-permission share on a sub-project is silently overridden by an inherited parent permission (broken access control / privilege-management regression in v2.6.0) | Medium | Also affects code.vikunja.io/api |
| GHSA-hjx8-qv73-f7cm Vikunja: Webhooks and link shares survive every revocation path, so a removed collaborator keeps a live feed | High | Also affects code.vikunja.io/api |
| GHSA-fprf-r6rv-xg99 Vikunja: Saved filter creation with an empty filter string recalculates task positions across all tenants | Medium | Also affects code.vikunja.io/api |
| GHSA-4hv6-xc92-j86g Vikunja: WebSocket authentication ignores server-side session state, so revoked sessions keep receiving live pushes | High | Also affects code.vikunja.io/api |
| GHSA-w2ch-4xgr-22ww Vikunja: Task relation deletion does not check read access to the other task, allowing cross-project relation removal | Low | Also affects code.vikunja.io/api |
| GHSA-8wvg-r2j4-3737 Vikunja: Assignee email addresses disclosed to read-only project members via the task assignees endpoint | Medium | Also affects code.vikunja.io/api |
| GHSA-3hc7-r24j-rpwc Vikunja: Cross-project task disclosure through subtask expansion | Medium | Also affects code.vikunja.io/api |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor