Skip to content

fix: reject WebAuthn requests that need a security key PIN instead of crashing (43-x-y) - #54404

Merged
MarshallOfSound merged 2 commits into
43-x-yfrom
bp/43-x-y/webauthn-pin
Sep 25, 2026
Merged

MarshallOfSound merged 2 commits into
43-x-yfrom
bp/43-x-y/webauthn-pin

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

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.

MarshallOfSound and others added 2 commits September 25, 2026 16:28
… 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)
@MarshallOfSound MarshallOfSound added backport This is a backport PR semver/patch backwards-compatible bug fixes 43-x-y labels Sep 25, 2026
@MarshallOfSound MarshallOfSound self-assigned this Sep 25, 2026
@MarshallOfSound
MarshallOfSound merged commit ee0f326 into 43-x-y Sep 25, 2026
90 checks passed
@MarshallOfSound
MarshallOfSound deleted the bp/43-x-y/webauthn-pin branch September 25, 2026 21:29
@release-clerk

release-clerk Bot commented Sep 25, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a crash when a WebAuthn request used a security key that required its PIN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

43-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants