CVE-2026-106447 StableLib: Stack exhaustion denial of service via deeply nested CBOR arrays, maps, or tags
Attackers can cause denial of service in applications using StableLib by sending deeply nested CBOR data that exhausts the call stack.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-106447?
CVE-2026-106447 is a high-severity denial of service vulnerability in stablelib, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-674
Which versions are affected by CVE-2026-106447?
2 open source packages ship an affected version, including @stablelib/cbor.
| Package | Affected | Fixed in |
|---|---|---|
@stablelib/cbor npm | All versions | 2.0.3 |
@stablelib/cbor npm | All versions | 2.0.3 |
How do I fix CVE-2026-106447?
Upgrade @stablelib/cbor to 2.0.3 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-106447 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-106447 exists.
Sources
Also known as GHSA-5jg4-p4qw-cgfr.