{"cve":"CVE-2023-22460","nvd":{"published":"2023-01-04T15:15:09.437","modified":"2026-08-27T04:16:39.520","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-20"],"references":["https://github.com/ipld/go-ipld-prime/pull/472","https://github.com/ipld/go-ipld-prime/releases/tag/v0.19.0","https://github.com/ipld/go-ipld-prime/security/advisories/GHSA-c653-6hhg-9x92","http://www.openwall.com/lists/oss-security/2026/08/27/1","https://github.com/ipld/go-ipld-prime/pull/472"],"products":["protocol:go-ipld-prime"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2023-22460","score":0.01123,"percentile":0.66242,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-c653-6hhg-9x92","url":"https://osv.dev/vulnerability/GHSA-c653-6hhg-9x92","summary":"go-ipld-prime/codec/json may panic if asked to encode bytes","modified":"2023-11-08T04:11:35.552164Z","packages":[{"ecosystem":"Go","name":"github.com/ipld/go-ipld-prime","purl":"pkg:golang/github.com/ipld/go-ipld-prime","ranges":["<0.19.0"],"fixed":["0.19.0"]}]},{"id":"GO-2023-1269","url":"https://osv.dev/vulnerability/GO-2023-1269","summary":"Panic in encoding in github.com/ipld/go-ipld-prime","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/ipld/go-ipld-prime","purl":"pkg:golang/github.com/ipld/go-ipld-prime","ranges":["<0.19.0"],"fixed":["0.19.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}