# CVE-2024-39912: Enumeration of valid usernames in web-auth/webauthn-lib

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-28)
- **CWE:** CWE-204
- **Aliases:** GHSA-875x-g8p7-5w27
- **Published:** 2024-07-15T16:37:49.000Z
- **Modified:** 2026-09-10T03:50:16.366Z

## 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

## 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

- Packagist `web-auth/webauthn-lib`: affected \>= 4.5.0, \< 4.9.0; fixed 4.9.0 (osv)
- Packagist `web-auth/webauthn-framework`: affected \>= 4.5.0, \< 4.9.0; fixed 4.9.0 (osv)
- web-auth webauthn-framework: \>= 4.5.0, \< 4.9.0 (cvelist)

## Mitigation

- Upgrade web-auth/webauthn-lib to 4.9.0 or later.
- Upgrade web-auth/webauthn-framework to 4.9.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/web-auth/webauthn-framework/security/advisories/GHSA-875x-g8p7-5w27>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-39912>
- patch: <https://github.com/web-auth/webauthn-framework/commit/64de11f6cddc71e56c76e0cc4573bf94d02be045>
- patch: <https://github.com/web-auth/webauthn-framework/commit/a9d1352897fba552e659e1445a771dec2d4ed05a>
- patch: <https://github.com/web-auth/webauthn-lib/commit/b6798de27cdedd8681fe4c9b13ace0ff2456d18b>
- other: <https://github.com/web-auth/webauthn-framework>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39912>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-875x-g8p7-5w27> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-39912> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39912>
