Repository navigation
fix: reject WebAuthn requests that need a security key PIN instead of crashing (43-x-y) - #54404
Merged
Merged
Conversation
… crashing (#54355) A CTAP2 security key whose built-in user verification is locked (or gets blocked mid-request) makes Chromium fall back to collecting the key's PIN even though the embedder reports SupportsPIN() == false. Electron inherited content's default CollectPIN(), which is NOTREACHED(), so the browser process died. Cancel the request instead and log why to the console. Adds a testing-binding hook that injects a virtual CTAP 2.1 key in that state (DevTools virtual authenticators cannot have a PIN) and a spec that covers create() and get(). Fixes #54317 (cherry picked from commit 417f2e4)
3 tasks done
VerteDinde
approved these changes
Sep 25, 2026
codebytere
approved these changes
Sep 25, 2026
|
Release Notes Persisted
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #54355 and #54377
See those PRs for details.
43-x-y does not have the macOS platform passkeys work, so
CreatePlatformDiscoveries()here only adds the testing-only virtual security key.Notes: Fixed a crash when a WebAuthn request used a security key that required its PIN.