---
id: CVE-2023-22460
title: >-
  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
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. Encoding data
  which cont…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-20
vendor: protocol
product: go-ipld-prime
affected:
  - go-ipld-prime < 0.19.0
patched:
  - go-ipld-prime 0.19.0
published: '2023-01-04'
updated: '2026-08-27'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-22460'
references:
  - url: 'https://github.com/ipld/go-ipld-prime/pull/472'
    label: security-advisories@github.com
  - url: 'https://github.com/ipld/go-ipld-prime/releases/tag/v0.19.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-c653-6hhg-9x92
    label: security-advisories@github.com
  - url: 'http://www.openwall.com/lists/oss-security/2026/08/27/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/ipld/go-ipld-prime/pull/472'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/ipld/go-ipld-prime/releases/tag/v0.19.0'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-c653-6hhg-9x92
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.01064
epssPercentile: 0.63177
ingestedAt: '2026-08-27T04:55:25.101Z'
---

## Overview

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. Encoding data which contains a Bytes kind Node will pass a Bytes token to the JSON encoder which will panic as it doesn't expect to receive Bytes tokens. Such an encode should be treated as an error, as plain JSON should not be able to encode Bytes. This only impacts uses of the `json` codec. `dag-json` is not impacted. Use of `json` as a decoder is not impacted. This issue is fixed in v0.19.0. As a workaround, one may prefer the `dag-json` codec, which has the ability to encode bytes.

## Affected

- `go-ipld-prime < 0.19.0`

## Remediation

Upgrade past the affected range:

- `go-ipld-prime 0.19.0`
