LOW 3.7 npm

joi messages compilation allows prototype replacement through __proto__ error codes

GHSA-wr44-6hxh-3jwq · CVE-2026-90771

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes