{"id":"GHSA-wr44-6hxh-3jwq","revision":"a5384285e1674dce8ee19e353dd78338","records":[{"revision":"a5384285e1674dce8ee19e353dd78338","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wr44-6hxh-3jwq","aliases":["CVE-2026-90771"],"title":"joi messages compilation allows prototype replacement through __proto__ error codes","description":"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.","state":0,"publishedAt":"2026-09-13T12:31:12+00:00","modifiedAt":"2026-10-05T23:45:08.2287608+00:00","affected":[{"ecosystem":"npm","name":"joi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"17.13.8"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"joi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"18.0.0"},{"kind":"fixed","version":"18.2.9"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2026-90771","https://github.com/hapijs/joi/issues/3150","https://github.com/hapijs/joi/pull/3151","https://github.com/hapijs/joi/pull/3153","https://github.com/hapijs/joi/commit/1d2001cad9971327a62c9fd8eb1afec20cd784d2","https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb","https://github.com/hapijs/joi","https://github.com/hapijs/joi/blob/v18.2.8/lib/messages.js","https://github.com/hapijs/joi/releases/tag/v17.13.8","https://github.com/hapijs/joi/releases/tag/v18.2.9","https://www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages"],"sourceUrl":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wr44-6hxh-3jwq","identifiers":["GHSA-wr44-6hxh-3jwq","CVE-2026-90771"]},"retained":false,"historicalAffected":[]}],"coverage":[]}