Patch Forecast
Yellow warning
Plan into this sprint.

GHSA-g38j-7v97-x298

Vikunja: CalDAV relation creation bypasses TaskRelation.CanCreate, allowing an unauthorized write into any task by known UID

Risk score
43/100
CVSS
6.3 v4.0
Published
9 Oct 2026

Open in the live forecast Today's forecast

What to know

What it is
Creating a task relation over CalDAV does not run the TaskRelation.CanCreate permission check that the REST API enforces. An attacker can attach a relation to any task whose UID they know, including tasks in projects they have no access to. The identical operation over REST is correctly refused with 403. persistRelati…
Affected
code.vikunja.io/api (go) <= 2.5.0
Fix
Upgrade code.vikunja.io/api to 2.6.0 or later.
Exploitation
No known exploitation

Story map

Story map: code.vikunja.io/apiTHE FLAWSTHE FIXGHSA-g38j-7v97-x298Vikunja: CalDAV relationcreation bypassesTaskRelation.CanCreate…CVSS 6.3CVE-2026-91972Vikunja: Every /api/v2pre-auth endpoint isunthrottled on a stock install…CVSS 8.7 · EPSS 1%CVE-2026-68581Vikunja: Link-share principalID collision allowscross-account API token…CVSS 8.1 · EPSS 0%CVE-2026-62376Vikunja: Plaintext storage ofpassword-reset/email-confirmtokens in database enables…CVSS 8.1 · EPSS 0%Upgrade code.vikunja.io/api2.4.0or later on your release lineWho is exposedcode.vikunja.io/api (go) <= 2.5.0AMBER · PATCH THIS WEEKcode.vikunja.io/apiregisterAPIRoutesV2 neverapplies the unconditionalpre-auth rate-limit floor(unauthRateLimit()) to the v2public routes — it passes thatlimiter only to /api/v2/ws — andotherwise relies on…Where it standsPublic proof of conceptCONNECTS TOSame weaknessMissing authorisation (CWE-862)399 other warnings in 30 days →
Story map: the flaws, the fix, how it unfolded and what it connects to. Boxes link to the record or article.

At a glance

code.vikunja.io/api: Amber, patch this week. registerAPIRoutesV2 never applies the unconditional pre-auth rate-limit floor (unauthRateLimit()) to the v2 public routes — it passes that limiter only to /api/v2/ws — and otherwise relies on setupRateLimit, which registers nothing when ratelimit.enabled is false (the default). So on a stock install every v2 pre-auth …

The flaws

  • GHSA-g38j-7v97-x298: Vikunja: CalDAV relation creation bypasses TaskRelation.CanCreate, allowing an unauthorized write into any task by known UID (CVSS 6.3)
  • CVE-2026-91972: Vikunja: Every /api/v2 pre-auth endpoint is unthrottled on a stock install while its /api/v1 twin is rate limited (CVSS 8.7 · EPSS 1%)
  • CVE-2026-68581: Vikunja: Link-share principal ID collision allows cross-account API token issuance and management (CVSS 8.1 · EPSS 0%)
  • CVE-2026-62376: Vikunja: Plaintext storage of password-reset/email-confirm tokens in database enables account takeover on DB read access (CVSS 8.1 · EPSS 0%)

The fix

Upgrade code.vikunja.io/api: 2.4.0 or later on your release line

Who is exposed: code.vikunja.io/api (go) <= 2.5.0

Where it stands

  • Public proof of concept

Connects to

Why it is Yellow

  • CVSS 6.3 medium
  • On your watchlist: Go

Affected packages

PackageEcosystemVulnerableFixed in
code.vikunja.io/apigo<= 2.5.02.6.0

References

Original description

### Summary Creating a task relation over CalDAV does not run the `TaskRelation.CanCreate` permission check that the REST API enforces. An attacker can attach a relation to any task whose UID they know, including tasks in projects they have no access to. The identical operation over REST is correctly refused with 403. ### Details `persistRelations` (`pkg/routes/caldav/listStorageProvider.go`, ~line 986) resolves the related task with an **unscoped** UID lookup (`models.GetTaskSimpleByUUID`) and calls `rel.Create(s, a)` directly, with no `CanCreate` check. `pkg/caldav/parsing.go` maps `RELATED-TO;RELTYPE=CHILD` to `RelationKindSubtask`. Because the CalDAV path never invokes the model's permission method, an authenticated user can create a subtask/parent relation between a task they own and an arbitrary victim task identified only by its UID. Task UIDs are `json:"-"` (never exposed over REST) but are exposed over CalDAV to anyone who has ever had read access to the containing project. Revoking that access does not unlearn the UID, so the realistic attacker is a removed collaborator. This write primitive also feeds the cross-project subtask-disclosure issue (GHSA-3hc7-r24j-rpwc): it lets an attacker create the very cross-project subtask edge that read path leaks across, removing that finding's "the attacker cannot create one to a project they can't access" precondition. A secondary effect of the same unchecked path: the `createDummy` branch can `Create` a task unchecked when the referenced UID does not resolve. ### PoC (verified at runtime against v2.5.0, commit c775a6c8) Baseline control — REST refuses: ``` PUT /api/v1/tasks/{attackerTask}/relations (attacker JWT) {"task_id":{attackerTask},"other_task_id":{victimTask},"relation_kind":"subtask"} -> HTTP 403 Forbidden ``` Exploit — CalDAV succeeds: ``` PUT /dav/projects/{attackerProject}/{attackerTaskUID}.ics (BasicAuth attacker) BEGIN:VCALENDAR VERSION:2.0 BEGIN:VTODO UID:{attackerTaskUID} RELATED-TO;RELTYPE=CHILD:{victimTaskUID} END:VTODO END:VCALENDAR -> HTTP 201 ``` Result: a `task_relations` row is written with `task_id={victimTask}`, `relation_kind=parenttask`, `created_by_id={attacker}` — a persisted, attacker-attributable write onto a task in a project the attacker cannot access. ### Impact Broken access control (missing authorization) on relation creation. An attacker can pollute the relation set of arbitrary tasks by UID and create the cross-project edges that enable subtask disclosure. Read of the related task's contents still requires the separate disclosure path; this finding is the unauthorized **write**. ### Fix Route CalDAV relation creation through `TaskRelation.CanCreate`, and scope the UID lookup to projects the caller can access.

Last activity 9 Oct 2026. Patch Forecast updates every hour.