{"id":"CVE-2026-122131","published":"2026-11-04T20:36:51Z","modified":"2026-11-05T19:40:15Z","title":"Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key","vendor":"hapijs","product":"joi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0033,"percentile":0.26756,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6","tags":["patch"]},{"url":"https://github.com/hapijs/joi","tags":["product"]},{"url":"https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec","tags":["patch"]},{"url":"https://github.com/hapijs/joi/pull/3164","tags":["patch","issue-tracking"]},{"url":"https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr","tags":["related","vendor-advisory"]},{"url":"https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67","tags":["technical-description"]},{"url":"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","tags":["third-party-advisory"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":5.35},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"hapijs","affectedVersions":[{"vendor":"hapijs","product":"joi","versions":[">= 17.13.6, < 17.13.9",">= 18.2.5, < 18.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T19:39:47.724527Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-117085","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hapijs-joi-cve-2026-84368","parents":[{"from":"CVE-2026-84368","to":"CVE-2026-122131","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-6w3j-5fw6-r9vr","via":"reference","url":"https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr"},{"kind":"same-code","provenance":"machine","files":["lib/messages.js"],"commits":["https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6","https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec","https://github.com/hapijs/joi/commit/8d0b808f3e874d28f9078f61b7742290989afb36","https://github.com/hapijs/joi/commit/90d07571923c90e3432a328fc041d1cda03d30fa"],"basis":"rarely changed file"}]},{"from":"CVE-2026-90771","to":"CVE-2026-122131","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/messages.js"],"commits":["https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6","https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec","https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb","https://github.com/hapijs/joi/commit/1d2001cad9971327a62c9fd8eb1afec20cd784d2"],"basis":"rarely changed file"}]}]}}