Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-84367— joi: object().rename() with a template target can set the validated object's prototype

Quick assessment

Affected
hapijs joi
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

hapi.js joi是hapi.js团队的一款JavaScript对象模式验证库。 hapi.js joi 16.0.0至17.13.5之前版本和18.0.0至18.2.4之前版本存在输入验证错误漏洞,该漏洞源于lib/types/keys.js中的internals.rename()实现未正确处理正则表达式重命名,结合{ multiple: true },允许攻击者通过构造x-__proto__输入键将目标渲染为__proto__,导致validate()返回对象的原型被修改,造成原型污染。

CVSS 3.7 · Low EPSS 0.39% · P32

Affected Version Matrix 2

VendorProduct Version RangeStatus
hapijs joi >= 16.0.0, < 17.13.5 affected
>= 18.0.0, < 18.2.4 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-84367

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
joi: object().rename() with a template target can set the validated object's prototype
Source: CVE Program / CVE List V5
Vulnerability Description
joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.5 and 18.2.4, joi's lib/types/keys.js internals.rename() implementation used by object().rename() permits a schema that renames keys with a regular-expression source and a Joi.expression() or Joi.x() target that interpolates the pattern's own match data, combined with { multiple: true }, to derive a target from an attacker-controlled input key. An attacker can send x-__proto__ with an object value, causing the target to render as __proto__ and set the prototype of the object returned by validate() instead of creating an own key. The global Object.prototype is not modified, so the effect is confined to the object returned by that validation call. Static-string targets and schemas using the default { multiple: false } are not affected. This issue is fixed in versions 17.13.5 and 18.2.4.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1321
Source: CVE Program / CVE List V5
Vulnerability Title
hapi.js joi 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
hapi.js joi是hapi.js团队的一款JavaScript对象模式验证库。 hapi.js joi 16.0.0至17.13.5之前版本和18.0.0至18.2.4之前版本存在输入验证错误漏洞,该漏洞源于lib/types/keys.js中的internals.rename()实现未正确处理正则表达式重命名,结合{ multiple: true },允许攻击者通过构造x-__proto__输入键将目标渲染为__proto__,导致validate()返回对象的原型被修改,造成原型污染。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
hapijs joi >= 16.0.0, < 17.13.5 -

II. Public POCs for CVE-2026-84367

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-84367

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-84367 (4)

Vendor Advisories for CVE-2026-84367 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-84367

No comments yet


Leave a comment