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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-1321"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/122xxx/CVE-2026-122131.json"
}{
"extracted_events": [
{
"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",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "76f5771e1afe527cfda24be0e1a920ffa54888d6"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "dae9467cec27e787bfdea8b276595177d52d28ec"
}
],
"source": "REFERENCES_COMMIT"
}
]
}