Skip to content

4.3.0

Choose a tag to compare

@aseigler aseigler released this 13 Oct 02:16
· 6 commits to maintenance-4.x since this release
134435e

Backports two WebAuthn Level 3 validation checks from the 5.0.0-preview line to the 4.x line (#689, #690).

What changed

  • crossOrigin/topOrigin in the collected client data are now validated during both registration and authentication. A response with crossOrigin: true is rejected unless Fido2Configuration.AllowCrossOriginRequests is set; when present, topOrigin must 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 topOrigin parse that could throw a raw UriFormatException on 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