---
id: CVE-2026-106447
title: StableLib is a stable library of useful TypeScript and JavaScript code
summary: >-
  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…
severity: high
cvss: 8.7
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cwe:
  - CWE-674
vendor: StableLib
product: stablelib
affected:
  - stablelib < 2.0.4
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T20:17:26.573'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-106447'
references:
  - url: >-
      https://github.com/StableLib/stablelib/commit/0149e18d9d4736e22c257744ca945ebce7899a01
    label: security-advisories@github.com
  - url: 'https://github.com/StableLib/stablelib/releases/tag/@stablelib/cbor@2.0.4'
    label: security-advisories@github.com
  - url: >-
      https://github.com/StableLib/stablelib/security/advisories/GHSA-5jg4-p4qw-cgfr
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
cvssSource: cna
ingestedAt: '2026-10-06T20:16:42.482Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
