{"id":"CVE-2026-90771","published":"2026-09-13T10:45:42Z","modified":"2026-09-24T14:21:52Z","title":"joi before 17.13.8 and 18.2.9 Prototype Pollution via messages","vendor":"hapijs","product":"joi","tier":"tail","description":{"text":"joi before versions 17.13.8 and 18.2.9 contains a prototype pollution vulnerability in the messages compilation function that accepts __proto__ as an error code. Attackers can supply __proto__ keys in custom messages to replace the returned object's prototype, breaking downstream code relying on Object.prototype methods.","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.00389,"percentile":0.33876,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/hapijs/joi/issues/3150","tags":["issue-tracking"]},{"url":"https://github.com/hapijs/joi","tags":["product"]},{"url":"https://github.com/hapijs/joi/blob/v18.2.8/lib/messages.js","tags":["technical-description"]},{"url":"https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages","tags":["third-party-advisory"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":6.78},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"hapijs","affectedVersions":[{"vendor":"hapijs","product":"joi","versions":[">= 16.0.0, < 17.13.8",">= 18.0.0, < 18.2.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-16T14:02:28.580545Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"joi","vulnerableRanges":["<17.13.8",">=18.0.0, <18.2.9"],"patched":["17.13.8","18.2.9"],"from":["GHSA-wr44-6hxh-3jwq"],"provenance":"source"}],"summary":{"text":"The joi validation library, in versions before 17.13.8 and 18.2.9, has a prototype pollution flaw in its messages compilation function, which accepts __proto__ as an error code. An attacker who can supply __proto__ keys in custom messages can replace the returned object's prototype, which can break downstream code that relies on Object.prototype methods; the attack is reachable over the network with no privileges or user interaction, but it requires high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:55Z"},"euvd":{"id":"EUVD-2026-76992","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hapijs-joi-cve-2026-84368","parents":[{"from":"CVE-2026-84368","to":"CVE-2026-90771","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/messages.js"],"commits":["https://github.com/hapijs/joi/commit/8d0b808f3e874d28f9078f61b7742290989afb36","https://github.com/hapijs/joi/commit/90d07571923c90e3432a328fc041d1cda03d30fa","https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb","https://github.com/hapijs/joi/commit/1d2001cad9971327a62c9fd8eb1afec20cd784d2"],"basis":"rarely changed file"}]}],"children":[{"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"}]}],"packageHistory":[{"cve":"CVE-2026-84367","published":"2026-09-01","fixed":"18.2.4","kev":false},{"cve":"CVE-2026-84368","published":"2026-09-01","fixed":"18.2.5","kev":false},{"cve":"CVE-2026-92599","published":"2026-09-16","fixed":"18.2.6","kev":false,"link":{"from":"CVE-2026-92599","to":"CVE-2026-90771","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"17.13.7","toFixed":"17.13.8","daysApart":-3},{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"18.2.6","toFixed":"18.2.9","daysApart":-3}]}},{"cve":"CVE-2026-90771","published":"2026-09-13","fixed":"18.2.9","kev":false},{"cve":"CVE-2026-118772","published":"2026-10-29","fixed":"18.3.1","kev":false,"link":{"from":"CVE-2026-90771","to":"CVE-2026-118772","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"17.13.8","toFixed":"17.13.9","daysApart":46},{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"18.2.9","toFixed":"18.3.1","daysApart":46}]}}],"package":"npm:joi"}}