Skip to content
Heist/ feed
Back to feed
Medium

go-ipld-prime: DAG-CBOR and DAG-JSON decoders unbounded recursion depth

Type: advisorySources: OSV

go-ipld-prime is an implementation of the InterPlanetary Linked Data (IPLD) spec interfaces, a batteries-included codec implementations of IPLD for CBOR and JSON, and tooling for basic operations on IPLD objects. Prior to 0.23.0, the DAG-CBOR and DAG-JSON decoders recurse on each nested map or list without a depth limit. A payload containing deeply nested collections causes the decoder to recurse once per level, growing the goroutine stack until the Go runtime terminates the process with a fatal stack overflow (distinct from a recoverable panic). This vulnerability is fixed in 0.23.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-42328
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 17:59 UTC · Revision 1

Source evidence

go-ipld-prime: DAG-CBOR and DAG-JSON decoders unbounded recursion depth

core-osv · Original source

Published 27 May 2026, 16:31 UTC

go-ipld-prime is an implementation of the InterPlanetary Linked Data (IPLD) spec interfaces, a batteries-included codec implementations of IPLD for CBOR and JSON, and tooling for basic operations on IPLD objects. Prior to 0.23.0, the DAG-CBOR and DAG-JSON decoders recurse on each nested map or list without a depth limit. A payload containing deeply nested collections causes the decoder to recurse once per level, growing the goroutine stack until the Go runtime terminates the process with a fatal stack overflow (distinct from a recoverable panic). This vulnerability is fixed in 0.23.0.

osv:CVE-2026-42328
Complete source record
{
  "id": "0787ff584e87769efe01b90b1a99d8846e2ca20c5710e509717eddc1640956d1",
  "url": "https://osv.dev/vulnerability/CVE-2026-42328",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "go-ipld-prime: DAG-CBOR and DAG-JSON decoders unbounded recursion depth",
    "summary": "go-ipld-prime is an implementation of the InterPlanetary Linked Data (IPLD) spec interfaces, a batteries-included codec implementations of IPLD for CBOR and JSON, and tooling for basic operations on IPLD objects. Prior to 0.23.0, the DAG-CBOR and DAG-JSON decoders recurse on each nested map or list without a depth limit. A payload containing deeply nested collections causes the decoder to recurse once per level, growing the goroutine stack until the Go runtime terminates the process with a fatal stack overflow (distinct from a recoverable panic). This vulnerability is fixed in 0.23.0.",
    "evidence": "osv:CVE-2026-42328",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-42328",
      "aliases": [
        "CVE-2026-42328",
        "GHSA-w239-58x2-q8p5",
        "GO-2026-5684"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ipld/go-ipld-prime",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "bfde41887909ba55bce085800d7b7cbdf16caa62"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.23.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.23.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.22.0",
            "v0.21.0",
            "v0.20.0",
            "v0.19.0",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "v0.14.4",
            "v0.14.3",
            "v0.14.2",
            "v0.14.1",
            "v0.14.0",
            "v0.12.3",
            "v0.12.2",
            "v0.12.1",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.9.0",
            "v0.7.0",
            "v0.6.0",
            "v0.5.0",
            "v0.5",
            "v0.4.0",
            "v0.4",
            "v0.0.3",
            "v0.0.2",
            "v0.0.1-filecoin",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42328.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.921581547Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42328.json",
        "https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-w239-58x2-q8p5",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-42328"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-674"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42328.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-42328",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 498111,
  "published_at": "2026-05-27T16:31:38.09+00:00"
}