Repository navigation
4.3.0
Backports two WebAuthn Level 3 validation checks from the 5.0.0-preview line to the 4.x line (#689, #690).
What changed
crossOrigin/topOriginin the collected client data are now validated during both registration and authentication. A response withcrossOrigin: trueis rejected unlessFido2Configuration.AllowCrossOriginRequestsis set; when present,topOriginmust match one of your configured origins.- An authenticator sending the backup-state (BS) flag without the backup-eligible (BE) flag is now rejected unconditionally — this combination is malformed per spec regardless of your configured backup policy.
⚠️ Breaking change
Cross-origin ceremonies were previously accepted with no validation at all. If your application intentionally performs WebAuthn ceremonies inside a cross-origin iframe, you need to opt in going forward:
var config = new Fido2Configuration
{
// ...
AllowCrossOriginRequests = true,
};Same-origin applications (the vast majority) are unaffected. See the v4.3.0 Upgrade Guide (https://github.com/passwordless-lib/fido2-net-lib/blob/maintenance-4.x/Documentation/migration-guide-4.3.0.md) for details.
Also in this release
- Fixed an unguarded
topOriginparse that could throw a rawUriFormatExceptionon malformed input instead of the library's own Fido2VerificationException. - Fixed an intermittent test failure in
Fido2MetadataServiceRepositoryTests(mostly surfaced on macOS CI runners), unrelated to the above but included for CI stability.
All Fido2 and Fido2.AspNet users on the 4.x line should review the upgrade guide before updating, in case cross-origin ceremonies apply to your deployment.
Full Changelog: 4.2.0...4.3.0