llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · code.vikunja.io/api

GHSA-RJ93-WMCH-2CRQ

Changing the API URL sends stored auth tokens to the new origin

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
6.8
Media
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición28 dDesde la divulgación, 22 oct 2026, 5:04 a. m.
Detección27 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
22 oct 26
18 nov 26
19 nov 26
22 oct 26
29 oct 26
5 nov 26
12 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-RJ93-WMCH-2CRQ divulgada · CVSS 6.8 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

If a logged-in user is led to switch the frontend's API URL to an attacker's server (via phishing, or an induced hydration failure that leaves them on the API-URL screen), the frontend sends their stored bearer token, and on Vikunja Desktop their OAuth refresh token, to the new origin.

Details

  • The access token and the desktop refresh token live in `localStorage` under keys that do not depend on the API origin (`frontend/src/helpers/auth.ts:19,71`).
  • `checkAndSetApiUrl` (`frontend/src/helpers/checkAndSetApiUrl.ts:64-69`) switches `window.API_URL`, reconfigures the client and clears the query cache when the base changes, but leaves the tokens in place.
  • The API client attaches `getToken()` to every request against whatever base is current (`frontend/src/client/http.ts:86-89`).
  • Desktop token refresh posts the refresh token to `window.API_URL` (`frontend/src/helpers/auth.ts:228`).

The leak starts with the first authenticated call after the switch (`checkAuth`). The `/info` probe itself uses the unauthenticated `publicClient`.

Impact

Account takeover: the attacker's server receives a valid bearer token (and on desktop a refresh token it can keep using) and can act as the victim on the real instance. It requires the victim to enter or accept the attacker's API URL, which limits it to targeted social engineering.

Fix

Clear tokens and auth state whenever the API base actually changes, next to `queryClient.clear()` in `checkAndSetApiUrl`, so the user has to log in again against the new server.

_Found via internal security review (03 #2)._

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
code.vikunja.io/api≤ 2.7.0
v0.24.6
2.7.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gocode.vikunja.io/api
Sin parche — — v0.24.6 afectada
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/go-vikunja/vikunja/security/advisories/GHSA-rj93-wmch-2crq

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.