All vulnerabilities

Servers and applications

CVE-2026-31835

Vaultwarden: WebAuthn assertion processed before signature verification allows persistent credential backup-flag tampering

Severity
Medium 5.3
Published
25 Apr 2026
Last changed
25 Jul 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.35.5
Exploit chance
0.2% in the next 30 daysHigher than 4% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Insufficient verification of data authenticity (CWE-345)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-x7g7-cgx5-jhx2
Sources
NVD, Project advisories (GitHub)

Description

Vaultwarden updates persistent WebAuthn credential metadata based on unverified authenticatorData before signature validation during the WebAuthn authentication flow.

An attacker who knows a user's password but cannot produce a valid WebAuthn signature can still permanently modify the stored backup_eligible and backup_state flags for that user's credential.

This can result in permanent denial of service of WebAuthn 2FA for affected credentials.

In validate_webauthn_login()

check_and_update_backup_eligible() parses rsp.response.authenticator_data and updates the stored WebAuthn registration before calling finish_passkey_authentication()

The function extracts the Backup Eligible (BE) and Backup State (BS) flags directly from the unverified authenticatorData and persists them to the database.

However, finish_passkey_authentication() performs signature validation only afterward.

If signature verification fails, the database update is not rolled back.

From dani-garcia/vaultwarden's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
VaultwardenServers and applications · cpe:a:dani-garcia:vaultwarden
  • Every version before 1.35.5
VaultwardenServers and applications · github:dani-garcia/vaultwarden
  • Every version before 1.35.5

About Vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs

From its GitHub repository.
Docker Hub pulls
361,463,423Docker Hub, 15 Nov 2026
GitHub stars
70,745GitHub, 15 Nov 2026
Forks
3,457GitHub, 15 Nov 2026
Latest release
1.37.5GitHub, 15 Nov 2026
Released
1 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
17 Feb 2018GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-31835
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-31835
  • GitHub Advisory Database https://github.com/advisories/GHSA-x7g7-cgx5-jhx2
  • github.com https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-x7g7-cgx5-jhx2