CVE-2024-39912
Enumeration of valid usernames in web-auth/webauthn-lib
Also known as GHSA-875x-g8p7-5w27
Mitigation
- Upgrade web-auth/webauthn-lib to 4.9.0 or later.
- Upgrade web-auth/webauthn-framework to 4.9.0 or later.
Who should check
- Projects that depend on Packagist package web-auth/webauthn-lib (>= 4.5.0, < 4.9.0)
- Projects that depend on Packagist package web-auth/webauthn-framework (>= 4.5.0, < 4.9.0)
- Anyone running web-auth webauthn-framework >= 4.5.0, < 4.9.0
Vulnerability facts
- Affected
- web-auth/webauthn-lib >= 4.5.0, < 4.9.0; web-auth/webauthn-framework >= 4.5.0, < 4.9.0
- Fixed in
- 4.9.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.69% chance of exploitation in 30 days (percentile 48, 2026-11-26)
- CWE
- CWE-204
- Modified
Description
web-auth/webauthn-lib is an open source set of PHP libraries and a Symfony bundle to allow developers to integrate that authentication mechanism into their web applications. The ProfileBasedRequestOptionsBuilder method returns allowedCredentials without any credentials if no username was found. When WebAuthn is used as the first or only authentication method, an attacker can enumerate usernames based on the absence of the `allowedCredentials` property in the assertion options response. This allows enumeration of valid or invalid usernames. By knowing which usernames are valid, attackers can focus their efforts on a smaller set of potential targets, increasing the efficiency and likelihood of successful attacks. This issue has been addressed in version 4.9.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist web-auth/webauthn-lib | >= 4.5.0, < 4.9.0 | 4.9.0 | osv |
| Packagist web-auth/webauthn-framework | >= 4.5.0, < 4.9.0 | 4.9.0 | osv |
| web-auth webauthn-framework | >= 4.5.0, < 4.9.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-39912. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-39912.md Affected: web-auth/webauthn-lib >= 4.5.0, < 4.9.0; web-auth/webauthn-framework >= 4.5.0, < 4.9.0 Fixed in: 4.9.0 Steps: 1. Search this machine and project for web-auth/webauthn-lib (Packagist), web-auth/webauthn-framework (Packagist), web-auth webauthn-framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2024-39912 being exploited?
There is no confirmed exploitation: CVE-2024-39912 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-39912?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-39912?
web-auth/webauthn-lib >= 4.5.0, < 4.9.0; web-auth/webauthn-framework >= 4.5.0, < 4.9.0.
Is there a fix for CVE-2024-39912?
Yes. Fixed in 4.9.0. Upgrade web-auth/webauthn-lib to 4.9.0 or later. Upgrade web-auth/webauthn-framework to 4.9.0 or later.
How do I check if I'm affected by CVE-2024-39912?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.