Uncontrolled Recursion Affecting @stablelib/cbor package, versions <2.0.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-STABLELIBCBOR-15954315
  • published9 Apr 2026
  • disclosed4 Apr 2026
  • creditJvr2022 Jvr

Introduced: 4 Apr 2026

New CVE NOT AVAILABLE CWE-674  (opens in a new tab)

How to fix?

Upgrade @stablelib/cbor to version 2.0.3 or higher.

Overview

@stablelib/cbor is a CBOR encoder and decoder

Affected versions of this package are vulnerable to Uncontrolled Recursion when decoding. An attacker can cause the application to crash or terminate unexpectedly by supplying a deeply nested, attacker-controlled CBOR payload that exhausts the call stack during recursive decoding.

CVSS Base Scores

version 4.0
version 3.1