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.
Published: 2026-10-06
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via stack exhaustion
Action: Patch
AI Analysis

Impact

StableLib’s @stablelib/cbor decoder processes nested CBOR arrays, maps, and tags recursively through _decodeValue() without a depth limit. When a deeply nested structure is processed, the JavaScript call stack is exhausted, triggering a decoding exception that can terminate an uncaught request worker or process. The primary impact is a denial of service that can affect the availability of any application that uses the unpatched decoder to parse CBOR data. This flaw is identified as CWE‑674: Uncontrolled Recursion.

Affected Systems

The vulnerability affects the StableLib library, specifically versions prior to 2.0.4. Users of stablelib in JavaScript or TypeScript projects that rely on the decoders for CBOR data are at risk until they upgrade to 2.0.4 or later.

Risk and Exploitability

With a CVSS score of 8.7 the risk is high. Although an EPSS score is not available, the lack of a public KEV listing does not reduce the potential impact. A malicious CBOR payload with deep nesting can trigger the issue when processed by the decoder. This can be achieved by supplying such a payload from an external source or through any input that the application accepts; elevated privileges are not required. The event is thus likely to be exploitable from any source that supplies input to the decoder.

Generated by OpenCVE AI on October 7, 2026 at 01:43 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update StableLib to version 2.0.4 or later
  • Run a dependency audit to ensure all transitive dependencies use the patched version
  • If immediate update is not possible, validate or limit CBOR payload depth before invoking the decoder to prevent stack exhaustion

Generated by OpenCVE AI on October 7, 2026 at 01:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Stablelib
Stablelib stablelib
Vendors & Products Stablelib
Stablelib stablelib

Wed, 07 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 06 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
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.
Title StableLib: Stack exhaustion denial of service via deeply nested CBOR arrays, maps, or tags
Weaknesses CWE-674
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Stablelib Stablelib
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-07T14:40:22.293Z

Reserved: 2026-10-06T16:49:40.590Z

Link: CVE-2026-106447

cve-icon Vulnrichment

Updated: 2026-10-07T14:40:05.115Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-06T20:17:26.573

Modified: 2026-10-07T15:17:12.183

Link: CVE-2026-106447

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T08:32:08Z

Weaknesses