{"vuln_id":"CVE-2026-27801","aliases":["GHSA-v6pg-v89r-w8wr"],"description":"2FA Bypass on Protected Actions due to Faulty Rate Limit Enforcement","published_at":"2026-03-04T18:57:19Z","modified_at":"2026-03-04T18:57:19Z","first_seen_at":"2026-11-22T14:05:38.160009Z","severity":"medium","severity_source":"ghsa","cvss_score":6.0,"cvss_vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","cwe":["CWE-307"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00287,"epss_percentile":0.21543,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-27801"},"matched_alias":null,"items":[{"id":12704,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"GHSA-v6pg-v89r-w8wr / CVE-2026-27801: 2FA Bypass on Protected Actions due to Faulty Rate Limit Enforcement","summary":"2FA Bypass on Protected Actions due to Faulty Rate Limit Enforcement ### Summary Vaultwarden v1.34.3 and prior are susceptible to a 2FA bypass when performing protected actions. An attacker who gains authenticated access to a user’s account can exploit this bypass to perform protected actions such as accessing the user’s API key or deleting the user’s vault and organisations the user is an admin/owner of. Note that ### Details Within Vaultwarden, the `PasswordOrOtpData` struct is used to gate certain protected actions such as account deletion behind a 2FA validation. This validation requires the user to either re-enter their master password, or to enter a one-time passcode sent to their email address. By default, the one-time passcode is comprised of six digits, and the expiry time for each token is ten minutes. The validation of this one-time passcode is performed by the following function: ```rust pub async fn validate_protected_action_otp( otp: &str, user_id: &UserId, delete_if_valid: bool, conn: &mut DbConn, ) -> EmptyResult { let pa = TwoFactor::find_by_user_and_type(user_id, TwoFactorType::ProtectedActions as i32, conn) .await .map_res(\"Protected action token not found, try sending the code again or restart the process\")?; let mut pa_data = ProtectedActionData::from_json(&pa.data)?; pa_data.add_attempt(); // Delete the token after x attempts if it has been used too many times // We use the 6, which should be more then enough for invalid attempts and multiple valid checks if pa_data.attempts > 6 { pa.delete(conn).await?; err!(\"Token has expired\") } // Check if the token has expired (Using the email 2fa expiration time) let date = DateTime::from_timestamp(pa_data.token_sent, 0).expect(\"Protected Action token timestamp invalid.\").naive_utc(); let max_time = CONFIG.email_expiration_time() as i64; if date + TimeDelta::try_seconds(max_time).unwrap() < Utc::now().naive_utc() { pa.delete(conn).await?; err!(\"Token has expired\") } if !crypto::ct_eq(&pa_data.token, otp) { pa.save(conn).await?; err!(\"Token is invalid\") } if delete_if_valid { pa.delete(conn).await?; } Ok(()) } ``` Since the one-time passcode is only six-digits long, it has significantly less entropy than a typical password or secret key. Hence, Vaultwarden attempts to prevent brute-force attacks against this passcode by enforcing a rate limit of 6 attempts per code. However, the number of attempts made by the user is not persisted correctly. In the `validate_protected_action_top` function, Vaultwarden first reads the OTP data from a JSON blob stored in `pa.data`. The resulting `ProtectedActionData` structure is then a deserialised copy of the underlying JSON value. ```rust let mut pa_data = ProtectedActionData::from_json(&pa.data)?; ``` Next, Vaultwarden calls `pa_data.add_attempt()` in order to i Affected packages: :Vaultwarden Patched: Vaultwarden 1.35.0","url":"https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-v6pg-v89r-w8wr","published_at":"2026-03-04T18:57:19Z","updated_at":"2026-03-04T18:57:19Z","fetched_at":"2026-11-22T14:05:38.135269Z","severity":"medium","cvss_score":6.0,"epss":0.00287,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"Vaultwarden","vuln_id":"CVE-2026-27801","vuln_ids":["CVE-2026-27801","GHSA-V6PG-V89R-W8WR"],"tags":["repo-advisory","CWE-307","security","repo:dani-garcia/vaultwarden","stack","vaultwarden"],"cluster_id":11802,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12704","html":"https://vulnwatch.ve1ve2.com/item/12704"}},{"id":12720,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"[SECURITY RELEASE] dani-garcia/vaultwarden 1.35.0","summary":"Fixes advisories: GHSA-v6pg-v89r-w8wr\n\nSecurity keywords: security\n\n## Notable changes\r\n- Implemented support for SSO with OpenID Connect, https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect\r\n- Updated web vault to 2025.12.0\r\n- Added support for future mobile apps with versions 2026.1.0+\r\n- This is the first vaultwarden release using [immutable releases](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases) and release attestation!\r\n\r\n## What's Changed\r\n* Fix multi delete slowdown by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6144\r\n* Perform same checks when setting kdf by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6141\r\n* SSO using OpenID Connect by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/3899\r\n* Delete SSO.md by @dani-garcia in https://github.com/dani-garcia/vaultwarden/pull/6152\r\n* Update webauthn-rs to 0.5.x by @zUnixorn in https://github.com/dani-garcia/vaultwarden/pull/5934\r\n* a little cleanup after SSO merge by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/6153\r\n* Fix link to point to the wiki by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6157\r\n* Fix Email 2FA for mobile apps by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/6156\r\n* Update Rust to 1.89.0 by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/6150\r\n* Fix several more multi select push issues by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6151\r\n* Fix minor typo by @ncguk in https://github.com/dani-garcia/vaultwarden/pull/6165\r\n* Update crates, fixes some yanked crates by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6167\r\n* Fix WebauthN issue with Software Keys by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6168\r\n* Fix Playwright test conf and update deps by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6176\r\n* Misc updates by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6185\r\n* fix typo in description of helo_name by @Flottegurke in https://github.com/dani-garcia/vaultwarden/pull/6194\r\n* Fix Playwright by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6206\r\n* Switch to GHA's concurrency control by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/6164\r\n* Make database connection pool dynamic by @Samoth69 in https://github.com/dani-garcia/vaultwarden/pull/6166\r\n* Re-add `if` check to release workflow by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/6227\r\n* Fix Webauthn/Passkey 2FA migration/validation issues by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6190\r\n* refactor(config): update template, add validation by @tessus in https://github.com/dani-garcia/vaultwarden/pull/6229\r\n* Show SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION in admin by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6235\r\n* Update crates, gha and web-vault by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6234\r\n* Fix panic around sso_master_password_policy by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6233\r\n* make webauthn more optional by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/6160\r\n* Fix 2fa recovery endpoint by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/6240\r\n* update trivy-action to v0.33.0 by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/6248\r\n* update web vault to v2025.9.1 and allow new policy by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/6340\r\n* prevent changing collections when hide_passwords is true by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/6278\r\n* Fix `sso_user` dropped on `User::save` by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6262\r\n* Change OIDC dummy identifier by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/6263\r\n* add new billing warnings endpoint by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/6369\r\n* Add auth_r","url":"https://github.com/dani-garcia/vaultwarden/releases/tag/1.35.0","published_at":"2025-12-27T23:07:12Z","updated_at":null,"fetched_at":"2026-11-22T14:05:38.135289Z","severity":"medium","cvss_score":6.0,"epss":0.00287,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"CVE-2026-27801","vuln_ids":["CVE-2026-27801","GHSA-V6PG-V89R-W8WR"],"tags":["release","repo:dani-garcia/vaultwarden","security","stack","vaultwarden"],"cluster_id":11802,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12720","html":"https://vulnwatch.ve1ve2.com/item/12720"}}]}