{"vuln_id":"CVE-2026-47164","aliases":["GHSA-6x5c-84vm-5j56"],"description":"SSO Email Auto-Link Can Bind an Existing Local Account to an Attacker-Controlled IdP Identity","published_at":"2026-05-19T21:27:33Z","modified_at":"2026-05-19T21:27:33Z","first_seen_at":"2026-11-22T13:40:16.283989Z","severity":"high","severity_source":"ghsa","cvss_score":7.7,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","cwe":["CWE-284"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00448,"epss_percentile":0.39698,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-47164"},"matched_alias":null,"items":[{"id":12054,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"GHSA-6x5c-84vm-5j56 / CVE-2026-47164: SSO Email Auto-Link Can Bind an Existing Local Account to an Attacker-Controlled IdP Identity","summary":"SSO Email Auto-Link Can Bind an Existing Local Account to an Attacker-Controlled IdP Identity\n\n## Summary\r\n\r\nA vulnerability in Vaultwarden's SSO login flow allowed an attacker who controlled an IdP identity asserting the victim's email address to bind that identity to the victim's existing Vaultwarden account and authenticate as the victim.\r\n\r\nThe IdP's `email_verified` claim was checked in the new-user creation branch but not in the existing-user binding branch of the SSO login handler. Combined with the default `SSO_SIGNUPS_MATCH_EMAIL=true`, this allowed an email match alone to be treated as sufficient authority for linking a new SSO identity to a pre-existing Vaultwarden account.\r\n\r\n## Affected versions\r\n\r\nAll Vaultwarden versions with SSO support up to and including 1.35.8. Versions 1.36.0 and up are fixed.\r\n\r\n## Root cause\r\n\r\nThe SSO login handler resolves the incoming IdP identity in three steps:\r\n\r\n1. Look up an existing `SsoUser` by stable identifier (issuer + subject).\r\n2. If none, fall back to looking up a local user by the IdP-supplied email.\r\n3. If a local user is found, complete the login and persist a new SSO binding.\r\n\r\nThe `email_verified` gate was applied only on the new-user branch (step 3 with no local match). On the existing-user branch, the IdP-supplied email was trusted as proof of ownership without consulting the `email_verified` claim. An IdP identity could therefore claim a victim's email — verified or not — and the resulting login flow would proceed against the victim's account.\r\n\r\n## Attack chain\r\n\r\n1. The attacker registers an identity at the configured IdP whose `email` claim equals the victim's Vaultwarden email. The IdP may set `email_verified` to `false` or omit it.\r\n2. The attacker initiates SSO login at Vaultwarden and authenticates at the IdP as the attacker's identity.\r\n3. `sso_login` finds no `SsoUser` by identifier, falls back to lookup by email, and matches the victim's existing local account.\r\n4. With no `email_verified` check on this branch, the flow proceeds to the 2FA gate. If the victim has no Vaultwarden 2FA configured, a session for the victim's account is issued to the attacker.\r\n5. A new SSO binding linking the attacker's IdP subject to the victim's user UUID is persisted, providing repeat access.\r\n\r\n## Impact\r\n\r\n- Account takeover of SSO-eligible victims without Vaultwarden 2FA whose email matches an IdP identity the attacker can obtain.\r\n- Full read of the victim's encrypted vault material (`Key`, `PrivateKey`, ciphers), enabling offline brute-force of the master password.\r\n- Authenticated session actions: device registration, emergency-access grant creation, cipher modification and deletion.\r\n- Potential org-level privilege escalation if the victim holds Owner privileges in any organization.\r\n- Persistent SSO binding remains attached to the victim's account after the session expires.\r\n\r\n## Preconditions\r\n\r\n- SSO is enabled on the Vaultwarden instance.\r\n- `SSO_SIGNUPS_MATCH_EMAIL=true` (default).\r\n- The victim has an existing Vaultwarden account whose email matches an IdP identity the att\n\nAffected packages: :vaultwarden\nPatched: vaultwarden 1.36.0","url":"https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-6x5c-84vm-5j56","published_at":"2026-05-19T21:27:33Z","updated_at":"2026-05-19T21:27:33Z","fetched_at":"2026-11-22T13:40:16.224731Z","severity":"high","cvss_score":7.7,"epss":0.00448,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"CVE-2026-47164","vuln_ids":["CVE-2026-47164","GHSA-6X5C-84VM-5J56"],"tags":["repo-advisory","","CWE-284","security","repo:dani-garcia/vaultwarden"],"cluster_id":11370,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12054","html":"https://vulnwatch.ve1ve2.com/item/12054"}},{"id":12711,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"[SECURITY RELEASE] dani-garcia/vaultwarden 1.36.0","summary":"Fixes advisories: GHSA-pfp2-jhgq-6hg5, GHSA-hxqh-ff5p-wfr3, GHSA-6x5c-84vm-5j56, GHSA-72vh-x5jq-m82g\n\nSecurity keywords: security, csrf, GHSA-PFP2-JHGQ-6HG5, GHSA-W6H6-8R66-HCV7, GHSA-HXQH-FF5P-WFR3, GHSA-J4J8-GPVJ-7FQR, GHSA-6X5C-84VM-5J56, ssrf, GHSA-72VH-X5JQ-M82G\n\n## Security Fixes\r\nThis release contains security fixes for the following advisories. We strongly advice to update as soon as possible.\r\n- SSO Login CSRF\r\n  [GHSA-pfp2-jhgq-6hg5](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-pfp2-jhgq-6hg5)\r\n  [GHSA-w6h6-8r66-hcv7](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-w6h6-8r66-hcv7)\r\n- User/Organization Enumeration\r\n  [GHSA-hxqh-ff5p-wfr3](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-hxqh-ff5p-wfr3)\r\n- SSO existing-user binding\r\n  [GHSA-j4j8-gpvj-7fqr](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-j4j8-gpvj-7fqr)\r\n  [GHSA-6x5c-84vm-5j56](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-6x5c-84vm-5j56)\r\n- SSRF via Icon Endpoint\r\n  [GHSA-72vh-x5jq-m82g](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-72vh-x5jq-m82g)\r\n- Some crate's updated and other minor security enhancements\r\n\r\nThese are private for now, pending CVE assignment.\r\n\r\n\r\n## Notes\r\n- Archiving of items is available\r\n  https://bitwarden.com/blog/keep-your-vault-tidy-with-item-archiving/\r\n  https://bitwarden.com/nl-nl/help/managing-items/#archive\r\n- Web Vault updated to v2026.4.1\r\n\r\n\r\n## What's Changed\r\n* SSO fallback to UserInfo preferred_username by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7128\r\n* Dummy identifier need to pass for a guid by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7154\r\n* add new /identity/accounts/prelogin/password by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/7156\r\n* Add DuckDuckGo browser device type by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/7147\r\n* Apply `duration_suboptimal_units` lint findings by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/7144\r\n* Apply `ref_option` lint findings by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/7143\r\n* Fix hardcoded sso identifier by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7157\r\n* Update crates and fix a nightly lint by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7161\r\n* Fix Host/IP resolving by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7162\r\n* Several SSO Fixes by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7163\r\n* Add support for archiving items by @matt-aaron in https://github.com/dani-garcia/vaultwarden/pull/6916\r\n* Fix favicon fetching to check all icon links instead of just the first one by @Shocker in https://github.com/dani-garcia/vaultwarden/pull/6880\r\n* Fix merge conflict by @dani-garcia in https://github.com/dani-garcia/vaultwarden/pull/7164\r\n* Replace organization_uuid unwrap with proper error handling by @xjohnyknox in https://github.com/dani-garcia/vaultwarden/pull/6936\r\n* fix: return Err instead of panic on unknown cipher atype in to_json() by @mango766 in https://github.com/dani-garcia/vaultwarden/pull/7068\r\n* Allow SQLite to be linked against dynamically by @ISSOtm in https://github.com/dani-garcia/vaultwarden/pull/7057\r\n* Update crates and web-vault by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7171\r\n* Update hickory by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7175\r\n\r\n## New Contributors\r\n* @matt-aaron made their first contribution in https://github.com/dani-garcia/vaultwarden/pull/6916\r\n* @Shocker made their first contribution in https://github.com/dani-garcia/vaultwarden/pull/6880\r\n* @xjohnyknox made their first contribution in https://github.com/dani-garcia/vaultwarden/pull/6936\r\n* @mango766 made their first contribution in https://github.com/dani-garcia/vaultwarden/pull/7068\r\n* @ISSOtm made their first contribution in https://github.com/dani-garcia/vaultwarden/pull/7057\r\n\r\n\r\n**Full Changelog**: https://github.com/dani-garcia/vaultwarden/compare/1.35.8...1.36.0\r\n\r\nYou can discuss this release here https://github.com/dani-garcia/vaultwarden/discussions/7177","url":"https://github.com/dani-garcia/vaultwarden/releases/tag/1.36.0","published_at":"2026-05-03T12:54:52Z","updated_at":null,"fetched_at":"2026-11-22T14:05:38.135282Z","severity":"high","cvss_score":8.3,"epss":0.00468,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"CVE-2026-47158","vuln_ids":["CVE-2026-47158","CVE-2026-47159","CVE-2026-47160","CVE-2026-47164","GHSA-6X5C-84VM-5J56","GHSA-72VH-X5JQ-M82G","GHSA-HXQH-FF5P-WFR3","GHSA-J4J8-GPVJ-7FQR","GHSA-PFP2-JHGQ-6HG5","GHSA-W6H6-8R66-HCV7"],"tags":["release","repo:dani-garcia/vaultwarden","security","stack","vaultwarden"],"cluster_id":11366,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12711","html":"https://vulnwatch.ve1ve2.com/item/12711"}}]}