joi is vulnerable to Prototype Pollution
37
Low Risk
joi compiles custom validation messages into a target object keyed by the language name inside its messages module. Before the fix, a language name of __proto__ or constructor causes joi to reuse an inherited object, so writing the localized messages assigns properties onto Object.prototype or other shared objects. This lets prototype pollution occur when an application builds a schema, message override, or extension from untrusted configuration, affecting every object in the process. The fix requires an own property on the target before writing and otherwise allocates a fresh object.
You are affected if you are using a version that falls within the vulnerable range and your application constructs joi schemas, message overrides, or extensions from untrusted configuration.
joi is vulnerable to Prototype Pollution in versions 17.1.1 - 17.13.5 and 18.0.0 - 18.2.4.
Upgrade the joi library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.