漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
joi: Prototype pollution via a `__proto__` language key in custom messages
Vulnerability Description
joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.6 and 18.2.5, the @hapi/joi package through 17.1.1 and the successor joi package contain prototype pollution in lib/messages.js, where exports.compile() and exports.merge() reuse inherited objects for attacker-controlled language keys supplied through messages(), message(), prefs({ messages }), Joi.extend({ messages }), or rule({ message }). A language key named __proto__ writes properties onto Object.prototype, and constructor writes to the Object function's static properties. A consuming application that gates on the presence of an inherited property can take the wrong branch for every inspected object. The flaw is not reachable from data that joi validates and requires an application to feed untrusted input directly into schema-construction configuration. This issue is fixed in joi versions 17.13.6 and 18.2.5; no fixed @hapi/joi version is available.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Vulnerability Type
CWE-1321
Vulnerability Title
hapi.js joi 输入验证错误漏洞
Vulnerability Description
hapi.js joi是hapi.js团队的一款JavaScript对象模式验证库。 hapi.js joi 16.0.0至17.13.6之前版本和18.0.0至18.2.5之前版本存在输入验证错误漏洞,该漏洞源于lib/messages.js中exports.compile()和exports.merge()重用继承对象,对攻击者控制的语言键处理不当,可能导致原型污染,使依赖继承属性判断的应用程序作出错误决策。
CVSS Information
N/A
Vulnerability Type
N/A