Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. webauthn-authenticator-rs
  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/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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.5, all versions starting from 0.6.0-dev before 0.6.1-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-authenticator-rs/GHSA-22w3-693w-x895.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:54 +0000.