Vulnerability
CVE-2026-90771
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.
47 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-6qf6-cx44-x9h5
- CGA-98xw-m42p-c5c3
- CGA-cj24-322q-wf6j
- CGA-m9wv-m53w-jqqm
- CGA-v9cc-gxwr-2c43
- CGA-x3p6-hx6h-qg3f
References
- https://github.com/hapijs/joi
- https://github.com/hapijs/joi/blob/v18.2.8/lib/messages.js
- https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb
- https://github.com/hapijs/joi/issues/3150
- https://www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages