CVE-2026-57458
Vikunja: Scoped API token can mint unrestricted OAuth session credentials
Vikunja is an open-source self-hosted task management platform. In version 2.3.0, a scoped API token limited to the oauth.authorize permission can call POST /api/v1/oauth/authorize, obtain an OAuth authorization code, and exchange the code at POST /api/v1/oauth/token for a normal bearer JSON Web Token (JWT) and refresh token. The resulting credentials are not restricted by the original API token's permissions, allowing access to routes outside its declared scope for the same user. Version 2.4.0 fixes the vulnerability.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.1
Vikunja: Scoped API token can mint unrestricted OAuth session credentials
Vikunja is an open-source self-hosted task management platform. In version 2.3.0, a scoped API token limited to the oauth.authorize permission can call POST /api/v1/oauth/authorize, obtain an OAuth authorization code, and exchange the code at POST /api/v1/oauth/token for a normal bearer JSON Web Token (JWT) and refresh token. The resulting credentials are not restricted by the original API token's permissions, allowing access to routes outside its declared scope for the same user. Version 2.4.0 fixes the vulnerability.
- Record
CVE-2026-57458- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-269
- Updated
- 2026-11-02
EUVDEUVD-2026-95991
8.1
Vikunja is an open-source self-hosted task management platform. In version 2.3.0, a scoped API token limited to the oauth.authorize permission can call POST /api/v1/oauth/authorize, obtain an OAuth authorization code, and exchange the code at POST /api/v1/oauth/token for a normal bearer JSON Web Token (JWT) and refresh token. The resulting credentials are not restricted by the original API token's permissions, allowing access to routes outside its declared scope for the same user. Version 2.4.0 fixes the vulnerability.
- Record
EUVD-2026-95991- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-v3p6-34mc-hj7v
8.1
Vikunja: Scoped API token can mint unrestricted OAuth session credentials
Summary
A scoped API token can bypass its declared permissions by using the OAuth authorization flow to mint normal session credentials.
A token limited to:
{"oauth":["authorize"]}
can call /api/v1/oauth/authorize, receive an OAuth authorization code, exchange it at /api/v1/oauth/token, and obtain a normal bearer JWT plus refresh token. The resulting credentials are not restricted by the original API-token permissions.
Affected Component
- Scoped API tokens
- OAuth authorization flow
POST /api/v1/oauth/authorizePOST /api/v1/oauth/token
Impact
A narrowly scoped API token with only oauth.authorize can be converted into normal session credentials for the same user.
This bypasses the intended API-token permission boundary. An attacker who obtains or is delegated such a limited token can mint a normal JWT and refresh token, then access routes outside the original token scope.
Runtime validation showed that the original scoped token could not access GET /api/v1/user, but the minted OAuth access token could access:
GET /api/v1/userGET /api/v1/projects
No cross-user access, privilege escalation to admin, or access to another account was validated.
Technical Details
The issue is caused by an authentication-context mismatch between scoped API-token authentication and OAuth authorization-code issuance.
The vulnerable chain is:
- A scoped API token authenticates the request and sets the current user context.
/api/v1/oauth/authorizeaccepts that API-token-authenticated user as a valid OAuth resource owner.- The OAuth authorization endpoint issues an authorization code.
/api/v1/oauth/tokenexchanges that code for a normal bearer JWT and refresh token.- The resulting credentials are not bound to the original API-token permissions.
Relevant code paths:
-
pkg/routes/routes.go- registers
/api/v1/oauth/authorizein an authenticated API route group that also accepts scoped API tokens
- registers
-
pkg/models/api_routes.go- exposes non-CRUD subroutes as API-token permissions
- exposes the OAuth authorization endpoint under the
oauthpermission group
-
pkg/routes/api_tokens.go- stores
api_tokenandapi_userin the request context during API-token authentication
- stores
-
pkg/user/user.go- treats
api_useras an authenticated current user
- treats
-
pkg/modules/auth/oauth2server/authorize.go- uses the current user and issues an OAuth authorization code
-
pkg/modules/auth/oauth2server/token.go- exchanges the authorization code for a normal JWT and refresh token
Steps to Reproduce
1. Create a scoped API token
Create an API token with only the following permission:
{"oauth":["authorize"]}
Observed response:
201 Created
The returned token had only the oauth.authorize permission.
2. Negative control: direct access with scoped token fails
Request:
GET /api/v1/user
Authorization: Bearer <scoped-api-token>
Observed response:
401 Unauthorized
Response body:
{"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}
This confirms that the scoped token cannot directly access the normal user route.
3. Obtain an OAuth authorization code with the scoped token
Request:
POST /api/v1/oauth/authorize
Authorization: Bearer <scoped-api-token>
Content-Type: application/json
Body:
{
"response_type": "code",
"client_id": "vikunja",
"redirect_uri": "vikunja-flutter://callback",
"code_challenge": "<pkce-s256-challenge>",
"code_challenge_method": "S256"
}
Observed response:
200 OK
Response body:
{
"code": "<redacted>",
"redirect_uri": "vikunja-flutter://callback",
"state": ""
}
The scoped API token successfully obtained an OAuth authorization code.
4. Exchange the authorization code for session credentials
Request:
POST /api/v1/oauth/token
Content-Type:…
- Record
GHSA-v3p6-34mc-hj7v- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-269
- Updated
- 2026-11-02
NVD
8.1
Vikunja is an open-source self-hosted task management platform. In version 2.3.0, a scoped API token limited to the oauth.authorize permission can call POST /api/v1/oauth/authorize, obtain an OAuth authorization code, and exchange the code at POST /api/v1/oauth/token for a normal bearer JSON Web Token (JWT) and refresh token. The resulting credentials are not restricted by the original API token's permissions, allowing access to routes outside its declared scope for the same user. Version 2.4.0 fixes the vulnerability.
- Record
CVE-2026-57458- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-269
- Updated
- 2026-11-02
OSV
8.1
Vikunja: Scoped API token can mint unrestricted OAuth session credentials
Vikunja is an open-source self-hosted task management platform. In version 2.3.0, a scoped API token limited to the oauth.authorize permission can call POST /api/v1/oauth/authorize, obtain an OAuth authorization code, and exchange the code at POST /api/v1/oauth/token for a normal bearer JSON Web Token (JWT) and refresh token. The resulting credentials are not restricted by the original API token's permissions, allowing access to routes outside its declared scope for the same user. Version 2.4.0 fixes the vulnerability.
- Record
CVE-2026-57458- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-269
- Updated
- 2026-11-02
OSVGHSA-v3p6-34mc-hj7v
8.1
Vikunja: Scoped API token can mint unrestricted OAuth session credentials
Summary
A scoped API token can bypass its declared permissions by using the OAuth authorization flow to mint normal session credentials.
A token limited to:
{"oauth":["authorize"]}
can call /api/v1/oauth/authorize, receive an OAuth authorization code, exchange it at /api/v1/oauth/token, and obtain a normal bearer JWT plus refresh token. The resulting credentials are not restricted by the original API-token permissions.
Affected Component
- Scoped API tokens
- OAuth authorization flow
POST /api/v1/oauth/authorizePOST /api/v1/oauth/token
Impact
A narrowly scoped API token with only oauth.authorize can be converted into normal session credentials for the same user.
This bypasses the intended API-token permission boundary. An attacker who obtains or is delegated such a limited token can mint a normal JWT and refresh token, then access routes outside the original token scope.
Runtime validation showed that the original scoped token could not access GET /api/v1/user, but the minted OAuth access token could access:
GET /api/v1/userGET /api/v1/projects
No cross-user access, privilege escalation to admin, or access to another account was validated.
Technical Details
The issue is caused by an authentication-context mismatch between scoped API-token authentication and OAuth authorization-code issuance.
The vulnerable chain is:
- A scoped API token authenticates the request and sets the current user context.
/api/v1/oauth/authorizeaccepts that API-token-authenticated user as a valid OAuth resource owner.- The OAuth authorization endpoint issues an authorization code.
/api/v1/oauth/tokenexchanges that code for a normal bearer JWT and refresh token.- The resulting credentials are not bound to the original API-token permissions.
Relevant code paths:
-
pkg/routes/routes.go- registers
/api/v1/oauth/authorizein an authenticated API route group that also accepts scoped API tokens
- registers
-
pkg/models/api_routes.go- exposes non-CRUD subroutes as API-token permissions
- exposes the OAuth authorization endpoint under the
oauthpermission group
-
pkg/routes/api_tokens.go- stores
api_tokenandapi_userin the request context during API-token authentication
- stores
-
pkg/user/user.go- treats
api_useras an authenticated current user
- treats
-
pkg/modules/auth/oauth2server/authorize.go- uses the current user and issues an OAuth authorization code
-
pkg/modules/auth/oauth2server/token.go- exchanges the authorization code for a normal JWT and refresh token
Steps to Reproduce
1. Create a scoped API token
Create an API token with only the following permission:
{"oauth":["authorize"]}
Observed response:
201 Created
The returned token had only the oauth.authorize permission.
2. Negative control: direct access with scoped token fails
Request:
GET /api/v1/user
Authorization: Bearer <scoped-api-token>
Observed response:
401 Unauthorized
Response body:
{"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}
This confirms that the scoped token cannot directly access the normal user route.
3. Obtain an OAuth authorization code with the scoped token
Request:
POST /api/v1/oauth/authorize
Authorization: Bearer <scoped-api-token>
Content-Type: application/json
Body:
{
"response_type": "code",
"client_id": "vikunja",
"redirect_uri": "vikunja-flutter://callback",
"code_challenge": "<pkce-s256-challenge>",
"code_challenge_method": "S256"
}
Observed response:
200 OK
Response body:
{
"code": "<redacted>",
"redirect_uri": "vikunja-flutter://callback",
"state": ""
}
The scoped API token successfully obtained an OAuth authorization code.
4. Exchange the authorization code for session credentials
Request:
POST /api/v1/oauth/token
Content-Type:…
- Record
GHSA-v3p6-34mc-hj7v- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-269
- Updated
- 2026-11-02
OSVGO-2026-6750 No score
Vikunja: Scoped API token can mint unrestricted OAuth session credentials in code.vikunja.io/api
Vikunja: Scoped API token can mint unrestricted OAuth session credentials 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 from v2.3.0 before v2.4.0.
- Record
GO-2026-6750- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
code.vikunja.io/apiGo |
2.3.0 to 2.3.0 | 2.4.0 |
code.vikunja.io/apiGo |
2.3.0 up to 2.4.0 | 2.4.0 |
code.vikunja.io/apiGo |
All versions | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-57458 is a high vulnerability (CVSS 8.1) in Go-vikunja Vikunja, published October 9, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.33%, the 26th percentile. Fixed in code.vikunja.io/api 2.4.0.
References
github.com/go-vikunja/vikunja/security/advisories/GHSA-v3p6-34mc-hj7v
github.com/go-vikunja/vikunja/commit/4ae2e093014881052ed8f8ecd8bcb9adf83dd276
github.com/go-vikunja/vikunja/releases/tag/v2.4.0
github.com/advisories/GHSA-v3p6-34mc-hj7v
github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57458.json
nvd.nist.gov/vuln/detail/CVE-2026-57458
github.com/go-vikunja/vikunja
Left out here: the rest of 2 source descriptions. The JSON record has them.