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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.17%, higher than 68% of CVEs (2026-12-01)
- Published: 2023-01-04T14:53:19.877Z
- Modified: 2026-08-27T04:16:39.520Z
- Also known as: GHSA-c653-6hhg-9x92, GO-2023-1269
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2023-22460](https://www.cve.org/CVERecord?id=CVE-2023-22460), CVE Terms of Use, modified 2026-08-27
- GitHub Advisory Database: [GHSA-c653-6hhg-9x92](https://github.com/advisories/GHSA-c653-6hhg-9x92), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2023-1269](https://pkg.go.dev/vuln/GO-2023-1269), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-22460](https://nvd.nist.gov/vuln/detail/CVE-2023-22460), Public domain, modified 2026-08-27

---

Page: https://cve.day/CVE-2023-22460 · Whole record: https://cve.day/CVE-2023-22460.json · Rebuilt by cve.day 2026-11-25T22:58:21.479Z
