Skip to content
OpenAdvisories
High · 8.7 CVE-2026-106447 EUVD-2026-93971GHSA-5jg4-p4qw-cgfr

StableLib: Stack exhaustion denial of service via deeply nested CBOR arrays, maps, or tags

Published Oct 6, 2026 · Updated Oct 7, 2026 · Assigned by GitHub_M

Description

StableLib is a stable library of useful TypeScript and JavaScript code. Prior to 2.0.4, the @stablelib/cbor decoder recursively processes nested CBOR arrays, maps, and tags through _decodeValue() without enforcing a maximum nesting depth. A sufficiently deep structure exhausts the JavaScript call stack, causing a decoding exception and potentially terminating an uncaught request worker or process. This issue is fixed in version 2.0.4.

Affected products

VendorProductAffectedFixed
StableLib stablelib < 2.0.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @stablelib/cbor < 2.0.3 2.0.3 GHSA-5jg4-p4qw-cgfr

References