{"id":"CVE-2026-122131","summary":"Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key","details":"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.","aliases":["CVE-2026-84368","GHSA-6w3j-5fw6-r9vr"],"modified":"2026-11-14T02:30:32.632577324Z","published":"2026-11-04T20:36:51.069Z","database_specific":{"cwe_ids":["CWE-1321"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/122xxx/CVE-2026-122131.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/122xxx/CVE-2026-122131.json"},{"type":"ADVISORY","url":"https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122131"},{"type":"ADVISORY","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"},{"type":"FIX","url":"https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6"},{"type":"FIX","url":"https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec"},{"type":"FIX","url":"https://github.com/hapijs/joi/pull/3164"},{"type":"PACKAGE","url":"https://github.com/hapijs/joi"},{"type":"ARTICLE","url":"https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hapijs/joi","events":[{"introduced":"850be1ee24be8d548bb09359bdb0cf9fe41635ff"},{"fixed":"5af45306226782035951fdc49f10fab5ebe021a2"},{"introduced":"58ce83e919a14f481f1a1edf30ee212cf90ba6a4"},{"fixed":"4009bfb93639b7da53b7cb1de2e2d8617d36d5f5"},{"fixed":"76f5771e1afe527cfda24be0e1a920ffa54888d6"},{"fixed":"dae9467cec27e787bfdea8b276595177d52d28ec"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"17.13.6"},{"fixed":"17.13.9"}],"source":"AFFECTED_FIELD"},{"strategy":"StandardRange","range":[{"introduced":"18.2.5"},{"fixed":"18.3.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"76f5771e1afe527cfda24be0e1a920ffa54888d6"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"dae9467cec27e787bfdea8b276595177d52d28ec"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v17.13.8","v18.3.0","v18.2.9","v17.13.7","v18.2.8","v18.2.7","v18.2.6","v17.13.6","v18.2.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-122131.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}