{"schema":"threatline.record/2","record":{"id":"CVE-2026-62367","aliases":["GHSA-xv7q-fvmc-jx96","GO-2026-6758"],"summary":"Vikunja: OIDC email-fallback account linking ignores email_verified, enabling local-account takeover","details":"## Summary\n\nWith the per-provider OIDC `emailfallback` option enabled, Vikunja links an SSO login to a pre-existing **local** (username+password) account using only the `email` claim — no `email_verified` (or Microsoft `xms_edov`) check and no password check, on the unauthenticated callback. An attacker who can make the configured issuer emit a token bearing a victim's email logs in as that victim with a full session and no victim interaction (the nOAuth / Grafana CVE-2023-3128 class). The 2.3.0 fix for GHSA-8jvc-mcx6-r4cg added a TOTP gate, not an `email_verified` gate, so users without TOTP remain exposed.\n\n## Details\n\nReferences are `pkg/modules/auth/openid/openid.go` at HEAD. Identity is first resolved on the immutable `(issuer, subject)` pair (`openid.go:428`). On a subject miss with `emailfallback` on, `fallbackSearchUsers` adds an email-only lookup against local accounts:\n\n```go\n// openid.go:413\nsearches = append(searches, &user.User{Issuer: user.IssuerLocal, Email: cl.Email})\n```\n\n`getUser` resolves this via `s.Get()`, which ANDs non-zero fields -> `WHERE issuer='local' AND email=?`. Local users always have `Issuer=\"local\"` (`user_create.go:38`), so the lookup matches any local account by email alone; `getOrCreateUser` returns it and the caller mints a session — the password is never read. The `claims` struct has no `email_verified` field (`openid.go:80`) and `getClaims` never consults one; a repo-wide grep for `email_verified`/`xms_edov` returns nothing. The code already warns about this at `openid.go:388` (\"Discouraged for untrusted providers where someone can set email without verification\") — but enforces nothing.\n\n## Impact\n\nUnauthenticated takeover of any existing **local** account (read/write/delete its projects, tasks, attachments, shares), bypassing the password. Scope notes: only `issuer='local'` accounts are matched (not pure-SSO users); the attacker's `sub` is not bound to the victim record, but the attack is repeatable; TOTP users are protected by the 2.3.0 `enforceTOTPIfRequired` gate (`openid.go:250`), non-TOTP users are not.\n\n## Preconditions\n\n1. Admin enabled `emailfallback: true` (defaults false — a default install is unaffected).\n2. The configured issuer lets the attacker assert the victim's unverified email: a self-service IdP (Keycloak/Authentik/Auth0/Dex with editable email), a mixed federation, or a multi-tenant Entra `/common` app. `iss`/`aud` are pinned, but the attacker controls `email`, not the issuer.\n3. The victim has a local account.\n\nNot reachable against a single-tenant IdP that verifies email and disallows self-set addresses.\n\n## Recommended Fix\n\nAdd `email_verified` to the `claims` struct and require it `true` on the email-fallback branch before linking to a local account; reject when absent/false. For Entra also require `xms_edov` and pin multi-tenant configs to an allowed-tenant list. Fail closed on an email collision not backed by a verified email from a trusted single-tenant issuer rather than silently logging the caller in.","categories":["Libraries & packages"],"product":"code.vikunja.io/api","vendor":"go-vikunja","ecosystem":"go","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-xv7q-fvmc-jx96","source_modified_at":"2026-10-09T20:49:07Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"code.vikunja.io/api"},"range":">= 1.0.0, <= 2.3.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-62367","source_modified_at":"2026-10-13T20:25:26.027Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"vikunja","vendor":"go-vikunja","versions":[{"version":">= 1.0.0, < 2.4.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-xv7q-fvmc-jx96","source_modified_at":"2026-10-19T21:40:54.288683723Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"code.vikunja.io/api","ecosystem":"Go","purl":"pkg:golang/code.vikunja.io/api"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"2.4.0"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-xv7q-fvmc-jx96","source_modified_at":"2026-10-09T20:49:07Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"code.vikunja.io/api"},"version":"2.4.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-xv7q-fvmc-jx96","source_modified_at":"2026-10-19T21:40:54.288683723Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"code.vikunja.io/api","ecosystem":"Go","purl":"pkg:golang/code.vikunja.io/api"},"version":"2.4.0"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00089,"percentile":0.00376,"score_date":"2026-10-23"},"published_at":"2026-10-09T20:49:08.891Z","modified_at":"2026-10-19T21:40:54.288683723Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-xv7q-fvmc-jx96","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-09T20:49:07Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-62367","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-13T20:25:26.027Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-xv7q-fvmc-jx96","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-19T21:40:54.288683723Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-62367","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/go-vikunja/vikunja/security/advisories/GHSA-xv7q-fvmc-jx96","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/go-vikunja/vikunja/commit/7854f2729ab72000210b61c25929678fd6901630","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/go-vikunja/vikunja/releases/tag/v2.4.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-xv7q-fvmc-jx96","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total","assessed_at":"2026-10-13T20:14:20.538444Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T21:40:54.288683723Z","content_hash":"71a296f0e52454507fa6c6abd829c0ebd355b8cecde5433339d015f2d82eaacd"}}
