go-ipld-prime json codec may panic if asked to encode bytes
CVE-2023-22460
7.5HIGH
What is CVE-2023-22460?
An issue in go-ipld-prime affects the JSON encoding of data containing a Bytes kind Node. The encoder panics when it encounters Bytes tokens, which are not valid for JSON encoding. This vulnerability impacts specific versions utilizing the 'json' codec, while 'dag-json' remains unaffected. Users are encouraged to upgrade to version 0.19.0 or switch to 'dag-json' for encoding bytes to avoid this issue.
Affected Version(s)
go-ipld-prime < 0.19.0
