GitHub Advisoryadvisory · npm
GHSA-g3qj-j598-cxmq fido2-lib is vulnerable to DoS via cbor-extract heap buffer over-read in CBOR attestation parsing
HIGH
Official page ↗
- Ecosystem
- npm
- Packages
- fido2-lib
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-125, CWE-126, CWE-1395
- Reviewed
- 2026-03-24
Affected packages
• npm fido2-lib: < 3.5.8 → fixed in 3.5.8
Description
Summary
fido2-lib v3.x depends on cbor-x (~1.6.0), which optionally pulls in cbor-extract (C++ native addon). cbor-extract = 1.6.3 (which pulls cbor-extract >= 2.2.1).
```diff
-"cbor-x": "~1.6.0"
+"cbor-x": "^1.6.3"
```
— Malik X (@Xvush)
Related
References
- https://github.com/webauthn-open-source/fido2-lib/security/advisories/GHSA-g3qj-j598-cxmq web
- https://github.com/kriszyp/cbor-extract/issues/2 web
- https://github.com/kriszyp/cbor-extract/issues/3 web
- https://github.com/kriszyp/cbor-extract/commit/1f6e0d9704149bdb5531d25f5d08a0280a71e2ca web
- https://github.com/webauthn-open-source/fido2-lib package