漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Valibot: record() issue paths can make flatten() throw for inherited Object property names
Vulnerability Description
Valibot helps validate data using a schema. Versions prior to 1.4.2 can throw a TypeError inside its flatten() helper when validation issues contain attacker-controlled object keys such as toString, valueOf, or hasOwnProperty. The issue is reachable through normal record() validation. record() intentionally filters __proto__, prototype, and constructor, but it still accepts other own keys that collide with inherited Object.prototype properties. If the record key schema or value schema rejects such an entry, Valibot creates an issue path containing that key. Passing the resulting issues to Valibot's documented flatten() helper causes flatErrors.nested[dotPath] to resolve to the inherited method instead of an own error array, and the helper calls .push(...) on that function. This is not a global prototype pollution issue. The impact is availability/error handling: applications that validate user-controlled objects with record() and flatten validation errors for API responses can crash the request path with a TypeError instead of returning structured validation errors. This issue has been fixed in version 1.4.2.
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Vulnerability Type
对异常条件的处理不恰当
Vulnerability Title
Open Circle valibot 异常处理不当漏洞
Vulnerability Description
Open Circle Valibot是Open Circle组织开源的一个用于结构化数据验证的库。 Open Circle valibot 1.4.2之前版本存在异常处理不当漏洞,该漏洞源于flatten() helper中对象键冲突导致TypeError,当验证问题包含攻击者控制的键时,可能导致请求路径崩溃,影响错误处理。
CVSS Information
N/A
Vulnerability Type
N/A