Skip to content

fix: reject WebAuthn requests that need a security key PIN instead of crashing - #54371

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-reject-webauthn-requests-that-need-a-security-key-pin-instead-of-crashing-1790337904356
Sep 25, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-reject-webauthn-requests-that-need-a-security-key-pin-instead-of-crashing-1790337904356

Conversation

@trop

@trop trop Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Backport of #54355

See that PR for details.

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

… crashing

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

Co-authored-by: Sam Attard <[email protected]>
@trop
trop Bot requested a review from MarshallOfSound September 25, 2026 12:05
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 25, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 25, 2026 16:06
@MarshallOfSound
MarshallOfSound merged commit 2955553 into 45-x-y Sep 25, 2026
90 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-reject-webauthn-requests-that-need-a-security-key-pin-instead-of-crashing-1790337904356 branch September 25, 2026 16:07
@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

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant