漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
go-ipld-prime json codec may panic if asked to encode bytes
Vulnerability 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 Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
输入验证不恰当
Vulnerability Title
go-ipld-prime 输入验证错误漏洞
Vulnerability Description
go-ipld-prime是IPLD开源的一种 ipld 规范接口的实现。 go-ipld-prime存在输入验证错误漏洞,该漏洞源于其包含Bytes类节点的编码数据将向JSON编码器传递一个Bytes令牌,因为它没有期望收到Bytes令牌。这样的编码应该被视为错误,因为纯JSON不应该被允许编码字节。
CVSS Information
N/A
Vulnerability Type
N/A