Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 4, 2026
- Updated
- Nov 5, 2026
- Reserved
- Nov 4, 2026
Description
Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 contains a prototype pollution vulnerability in lib/messages.js compile() and merge() that fails to reject a __proto__ language key. Attackers supplying untrusted message configuration via any().messages(), prefs, validate options or Joi.extend can replace the compiled messages prototype, altering or breaking validation error rendering and dependent logic.
| Product | Versions |
|---|---|
| joi hapijs | 17.13.6 to before 17.13.9 Affected18.2.5 to before 18.3.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 3.7 Low | VulnCheck |
Weaknesses
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- Patch CommitPatch
- https://github.com/hapijs/joiProduct Page
- https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ecPatch
- https://github.com/hapijs/joi/pull/3164PatchIssue Tracker
- GitHub Security Advisory (GHSA-6w3j-5fw6-r9vr)RelatedVendor Advisory
- https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67Technical Details
- VulnCheck Advisory: Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language KeyThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.