Read the docs
TI-2026-66409 Aliases GHSA-g3qj-j598-cxmq

fido2-lib is vulnerable to DoS via cbor-extract heap buffer over-read in CBOR attestation parsing

Priority LOW 38CWE-125Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Summary 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 [email protected] / [email protected] (2026-03-08). [email protected] still pins cbor-x ~1.6.0 which resolves to vulnerable cbor-extract. ## Affected versions fido2-lib <= 3.5.7 (introduced cbor-x dependency). fido2-lib 2.x uses the old `cbor` package — not affected. Only affects systems where `cbor-extract` native addon is installed (prebuilt binary available for platform). Pure JS fallback is safe. ## PoC ```js const { decode } = require("cbor-x"); decode(Buffer.from("7a10000000", "hex")); // exit code 139 (SIGSEGV) ``` CBOR text string header claiming 268MB in a 5-byte buffer. `extractStrings()` in extract.cpp line 87 calls `readString()` without bounds check. Reads past buffer into unmapped memory. In context: attacker intercepts WebAuthn registration response, replaces `attestationObject` with the 5-byte payload, POSTs to the registration verification endpoint. Server calls `attestationResult()` → `cbor-x.decode()` → `cbor-extract` → SIGSEGV. ## Fix Bump cbor-x to >= 1.6.3 (which pulls cbor-extract >= 2.2.1). ```diff -"cbor-x": "~1.6.0" +"cbor-x": "^1.6.3" ``` — Malik X (@Xvush)

Why it matters now

Fix Fixed fido2-lib (npm): 3.5.8

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—fido2-lib (npm)before 3.5.83.5.8Patch availableGHSA-g3qj-j598-cxmq
  • fido2-lib (npm) Vendor— Affected before 3.5.8 Fixed in 3.5.8 Patch available GHSA-g3qj-j598-cxmq

Remediation

  • Fix · GHSA-g3qj-j598-cxmq fido2-lib (npm) Fixed in 3.5.8 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-g3qj-j598-cxmq

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences