Stack Overflow Vulnerability in go-ipld-prime by IPLD
CVE-2026-42328
6.2MEDIUM
What is CVE-2026-42328?
The go-ipld-prime implementation of the InterPlanetary Linked Data (IPLD) specification contains a vulnerability in its DAG-CBOR and DAG-JSON decoders. Prior to version 0.23.0, these decoders lack a depth limit for recursion when processing nested collections. As a result, providing a payload with deeply nested maps or lists can cause extensive recursion, leading to a stack overflow in the Go runtime. This situation triggers a fatal termination of the process rather than a recoverable panic, posing a significant risk to applications utilizing this library. Upgrading to version 0.23.0 mitigates this vulnerability.
Affected Version(s)
go-ipld-prime < 0.23.0
