code.vikunja.io/api · Api: Vikunja: Permissive Cross-domain Security Policy trusts every localhost origin which should not be trusted
Affects code.vikunja.io/apiSource GCVE Database
CVSS 7.2 High.
Data as of 10 Oct 2026, 21:26 UTC
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gocode.vikunja.io/api | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Operators should review and explicitly configure the cors.origins setting to exclude localhost origins in production environments. Avoid relying on default CORS settings that include wildcard localhost origins. Monitor vendor advisories for an official fix or updated guidance to disable or restrict localhost origins in the CORS configuration. Until a patch is available, do not deploy Vikunja with default CORS settings in production.
Description
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.