zod is vulnerable to Prototype Pollution
69
Medium Risk
Object schemas that define a catchall merge unrecognized keys onto the parsed output through an internal catchall path. That path treated a literal __proto__ key like a normal property and assigned catchall results onto the output using ordinary property assignment, which can replace the result object's prototype so attacker-supplied keys appear as inherited properties on validated objects. The correction skips that key before running catchall validation so prototype reassignment through this mechanism cannot occur.
You are affected if you are using a version that falls within the vulnerable range.
zod is vulnerable to Prototype Pollution in versions 1.0.0 - 4.3.6.
Upgrade the zod 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.

SOC 2Compliant
ISO 27001Compliant