Vulnerabilities/

@stablelib/cbor: Stack exhaustion Denial of Service via deeply nested CBOR arrays, maps, or tags

Severity:
High

Description

@stablelib/cbor decodes nested CBOR structures recursively and does not enforce a maximum nesting depth. A sufficiently deep attacker-controlled CBOR payload can therefore crash decoding with RangeError: Maximum call stack size exceeded.

Recommendation

Update the @stablelib/cbor package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@stablelib/cbor
Anything's wrong? Let us know Last updated on April 07, 2026