Low severity · published Sep 1, 2026
CVE-2026-84368
joi: Prototype pollution via a `__proto__` language key in custom messages
3.7
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 33% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JO
joi · hapijs
>= 16.0.0, <= 17.1.1; >= 17.2.0, < 17.13.6; >= 18.0.0, < 18.2.5 · source: vendor
Affected product
JO
joi
hapijs
More from joi
7.5
CVE-2026-118772
joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service
7.5
CVE-2026-92599
Joi before 17.13.7 and 18.2.6 ReDoS via isoDate
5.3
CVE-2026-48038
joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas
3.7
CVE-2026-90771
joi before 17.13.8 and 18.2.9 Prototype Pollution via messages
3.7
CVE-2026-84367
joi: object().rename() with a template target can set the validated object's prototype