CVE-2026-122131
MEDIUM 6.3CVSS 4.0joi: Prototype pollution via a `__proto__` language key in custom messages
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.
- Published
- 4 Nov 2026
- Last modified
- 12 Nov 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-1321
- Also known as
- CVE-2026-84368GHSA-6w3j-5fw6-r9vr
- Sources
- NVDJSONOSV GHSA-6w3j-5fw6-r9vrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | joi | >= 17.2.0, < 17.13.6 | 17.13.6 |
| OSV | npm | @hapi/joi | >= 16.0.0, <= 17.1.1 | |
| OSV | npm | joi | >= 18.0.0, < 18.2.5 | 18.2.5 |
References
- https://github.com/hapijs/joi · PACKAGE
- https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67
- https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6
- https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec
- https://github.com/hapijs/joi/pull/3164
- https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr · WEB
- https://www.vulncheck.com/advisories/joi-17.13.6-before-17.13.9-and-18.2.5-before-18.3.1-prototype-replacement-via-proto-language-key
- https://nvd.nist.gov/vuln/detail/CVE-2026-84368 · ADVISORY
- https://github.com/hapijs/joi/pull/3138 · WEB
- https://github.com/hapijs/joi/pull/3139 · WEB
- https://github.com/hapijs/joi/commit/8d0b808f3e874d28f9078f61b7742290989afb36 · WEB
- https://github.com/hapijs/joi/commit/90d07571923c90e3432a328fc041d1cda03d30fa · WEB
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 4 Nov 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Sep 2026)