web-auth/webauthn-lib · Webauthn lib: Webauthn: SimpleFakeCredentialGenerator with an empty secret produces predictable fake credentials, weakening username enumeration protection
Affects web-auth/webauthn-libSource GCVE Database
Public exploit available · CVSS 6.3 Medium : upgrade to 5.3.5 as a priority.
Data as of 8 Jul 2026, 13:41 UTC
- Patch
- Available – fixed in 5.3.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:PWhat to do
Upgrade web-auth/webauthn-lib to 5.3.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistweb-auth/webauthn-lib | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in version 5.3.5 of web-auth/webauthn-lib. Users should upgrade to 5.3.5 or later. Until then, ensure that SimpleFakeCredentialGenerator is constructed with a non-empty, deployment-specific secret (e.g., the application secret). The Symfony bundle is not affected by default as it injects a non-empty secret. The library emits deprecation warnings when constructed without a secret to help detect misconfigurations. Providing a custom FakeCredentialGenerator implementation seeded with a secret is also a valid workaround.
Description
The Webauthn library's SimpleFakeCredentialGenerator, when instantiated without a secret, produces predictable fake credentials based solely on the username. This predictability allows attackers to distinguish between real and fake usernames, defeating the intended username enumeration protection. The issue affects versions from 4.9.0 up to but not including 5.3.5. The default Symfony bundle configuration is not affected as it injects a non-empty secret. The vulnerability is considered low severity since it only re-enables username enumeration and does not affect the validity of responses.