llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · obsidian-sync-mcp

GHSA-CC9W-6W4G-HQV7

Password-gated OAuth: authorization code is redeemable without the password

Texto original en inglés · Ver en español

Sin parche publicado
Descargar PNG JSON
CVSS 4.0
9.3
Crítica
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición48 dDesde la divulgación, 3 oct 2026, 4:53 p. m.
Detección46 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
3 oct 26
19 nov 26
21 nov 26
3 oct 26
15 oct 26
28 oct 26
9 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-CC9W-6W4G-HQV7 divulgada · CVSS 9.3 (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

Impact

Anyone who can reach a server started with `MCP_AUTH_TOKEN` set can obtain a valid access token without knowing the password, and then has full vault access through every MCP tool (read, write, delete), within whatever `READ_ONLY` / `WRITE_FOLDERS` allow.

Cause (`src/auth.ts`, `mountPasswordAuth`)

  1. `GET /oauth/authorize` generates the authorization `code`, stores it in `pendingAuths`, and renders it into the password page as a hidden form field, before any password has been entered.
  2. `POST /oauth/token` (`grant_type=authorization_code`) accepts any code present in `pendingAuths` whose `client_id`, `redirect_uri` and PKCE verifier match. All three are chosen by the caller. Nothing records whether `POST /oauth/approve` (the password check) ever succeeded for that code.

Reproduction (v0.7.0 from npm, filesystem mode, `MCP_AUTH_TOKEN` set, bound to localhost)

  1. `POST /oauth/register` with `{"redirect_uris": ["http://localhost:9/callback"], "token_endpoint_auth_method": "none"}` returns a `client_id`.
  2. Generate a PKCE verifier and its S256 challenge. `GET /oauth/authorize?client_id=…&redirect_uri=http://localhost:9/callback&code_challenge=…&code_challenge_method=S256&state=x` returns 200 with the password page. Read the `code` from `<input type="hidden" name="code" value="…">`.
  3. Without calling `/oauth/approve`: `POST /oauth/token` (form-encoded) with `grant_type=authorization_code`, that `code`, the `client_id`, the `code_verifier` and the `redirect_uri` returns 200 with an `access_token`.
  4. `POST /mcp` `initialize` with `Authorization: Bearer <access_token>` returns 200. (Control: a made-up bearer token gets 401.)

Patches

Fixed in 0.7.1. `/oauth/token` now requires that the password step completed before a code can be redeemed — an `approved` flag set only after the password check — with a regression test covering token-exchange-before-approve.

Remediation

  • Upgrade to 0.7.1 immediately if you run with `MCP_AUTH_TOKEN` set.
  • The bug does not disclose your password, so rotating it isn't required. Tokens issued before upgrading remain valid until they expire (access ~1h, refresh up to 14 days); to revoke them, clear the OAuth token store (`auth-tokens.json`) and restart.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
obsidian-sync-mcp≤ 0.7.0
0.7.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmobsidian-sync-mcp
Sin parche — — —
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/es617/obsidian-sync-mcp/security/advisories/GHSA-cc9w-6w4g-hqv7

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