Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fido2-lib
  4. ›
  5. GHSA-g3qj-j598-cxmq

GHSA-g3qj-j598-cxmq: fido2-lib is vulnerable to DoS via cbor-extract heap buffer over-read in CBOR attestation parsing

March 24, 2026

fido2-lib v3.x depends on cbor-x (~1.6.0), which optionally pulls in cbor-extract (C++ native addon). cbor-extract <= 2.2.0 has a heap buffer over-read in extractStrings() — a 5-byte CBOR payload crashes Node.js with SIGSEGV. No JS exception, no try/catch, process dead.

The crash triggers during WebAuthn registration when the server decodes the attestation object. An attacker sends a crafted authenticator response to the registration endpoint — single request, unauthenticated, instant kill.

Fixed in cbor-extract@2.2.1 / cbor-x@1.6.3 (2026-03-08). fido2-lib@3.5.7 still pins cbor-x ~1.6.0 which resolves to vulnerable cbor-extract.

References

  • github.com/advisories/GHSA-g3qj-j598-cxmq
  • github.com/kriszyp/cbor-extract/commit/1f6e0d9704149bdb5531d25f5d08a0280a71e2ca
  • github.com/kriszyp/cbor-extract/issues/2
  • github.com/kriszyp/cbor-extract/issues/3
  • github.com/webauthn-open-source/fido2-lib
  • github.com/webauthn-open-source/fido2-lib/security/advisories/GHSA-g3qj-j598-cxmq

Code Behaviors & Features

Detect and mitigate GHSA-g3qj-j598-cxmq 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 3.5.8

Fixed versions

  • 3.5.8

Solution

Upgrade to version 3.5.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read
  • CWE-126: Buffer Over-read
  • CWE-1395: Dependency on Vulnerable Third-Party Component

Source file

npm/fido2-lib/GHSA-g3qj-j598-cxmq.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:18 +0000.