StableLib
StableLib: Stack exhaustion denial of service via deeply nested CBOR arrays, maps, or tags
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-674
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
StableLib stablelib
- < 2.0.4
Fixed in 2.0.4
Mitigation
Upgrade stablelib to 2.0.4 or later.
References
- Vendor advisory github.com/StableLib/stablelib/security/adviso…
- Patch github.com/StableLib/stablelib/commit/0149e18d…
- Release notes github.com/StableLib/stablelib/releases/tag/@s…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.