Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. webauthn-rs-core
  4. ›
  5. GHSA-22w3-693w-x895

GHSA-22w3-693w-x895: webauthn-rs-core/webauthn-authenticator-rs: Origin validation mismatch possible when subdomains are allowed

May 6, 2026

webauthn-rs-core ([Relying Party][rp]) and webauthn-authenticator-rs ([client][]) checked that [an Origin in CollectedClientData][origin] is valid for [an RP ID][rpid] with [str::ends_with()][ends-with], [without checking for a dot (.) before the RP ID when allowing subdomains][registerable-suffix].

This check is flawed, and could allow requests from an attacker-controlled domain such as hermit-crab.example to be accepted for the RP ID crab.example (assuming .example was publicly-registerable TLD) when the RP allows authenticating from a subdomain (disabled by default in webauthn-rs-core and webauthn-rs).

References

  • github.com/advisories/GHSA-22w3-693w-x895
  • github.com/kanidm/webauthn-rs
  • github.com/kanidm/webauthn-rs/security/advisories/GHSA-22w3-693w-x895

Code Behaviors & Features

Detect and mitigate GHSA-22w3-693w-x895 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.5, all versions starting from 0.6.0-dev before 0.6.1-dev, version 0.6.0-dev

Fixed versions

  • 0.5.5
  • 0.6.1-dev

Solution

Upgrade to versions 0.5.5, 0.6.1-dev or above.

Impact 4.2 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1289: Improper Validation of Unsafe Equivalence in Input

Source file

cargo/webauthn-rs-core/GHSA-22w3-693w-x895.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 07 May 2026 00:19:37 +0000.