What’s Vulnerable › Vulnerabilities

CVE-2026-90771: joi before 17.13.8 and 18.2.9 Prototype Pollution via messages

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.

Affected products

How to fix

Upgrade to a fixed version: hapijs joi 17.13.8, 18.2.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-90771 or the next vulnerability affects your stack