Stack exhaustion in StableLib CBOR decoder causes denial of service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-674.
Summary
StableLib versions before 2.0.4 are affected, specifically the @stablelib/cbor decoder. The decoder recursively processes nested CBOR arrays, maps, and tags without enforcing a maximum nesting depth (CWE-674). An unauthenticated remote attacker can send deeply nested CBOR data that exhausts the JavaScript call stack, causing a decoding exception and potentially terminating a request worker or process.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade StableLib to version 2.0.4, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA stablelib (StableLib) Fixed in 2.0.4
Timeline
- 2026-10-06 Threatist record created from CVE-2026-106447
- 2026-10-07 CISA SSVC decision points changed
- 2026-10-07 Priority changed: MEDIUM → HIGH
References
More StableLib vulnerabilities
- TI-2026-68928 Prototype poisoning in StableLib CBOR decoding via __proto__ map keys CVSS 4.0HIGH 8.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences