CVE-2026-106447

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

Published Oct 6, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
First Time appeared Stablelib
Stablelib stablelib
Vendors & Products Stablelib
Stablelib stablelib
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 7, 2026, 2:40 PM
Reserved
Oct 6, 2026, 4:49 PM
Status
Awaiting Analysis
Published
Oct 6, 2026, 8:17 PM
Modified
Oct 7, 2026, 3:17 PM