# CVE-2023-22460: go-ipld-prime json codec may panic if asked to encode bytes

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.19.0 (CNA); fix release not confirmed
- Status: published
- Published: 2023-01-04 · Modified: 2026-08-27
- Aliases: GHSA-c653-6hhg-9x92, GO-2023-1269
- Record: https://cvemate.com/vulnerability/CVE-2023-22460 · JSON: https://cvemate.com/vulnerability/CVE-2023-22460/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.165%, percentile 68.361%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/ipld go-ipld-prime (Go): \< 0.19.0
- ipld go-ipld-prime: \< 0.19.0
- protocol go-ipld-prime: \< 0.19.0

## References

- <https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-c653-6hhg-9x92>
- <https://github.com/ipld/go-ipld-prime/pull/472>
- <https://github.com/ipld/go-ipld-prime/releases/tag/v0.19.0>
- <http://www.openwall.com/lists/oss-security/2026/08/27/1>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22460>
- <https://github.com/ipld/go-ipld-prime/commit/146d1c8529676fe9ee0604f014656af2395505fc>
- <https://github.com/ipld/go-ipld-prime>
- <https://pkg.go.dev/vuln/GO-2023-1269>

---

Data as of 2026-12-05T07:29:57.487Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
