Intel

AIKIDO-2026-10707

zod is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

69

Medium Risk

This Affects:

JSzod
1.0.0 - 4.3.6
Fixed in 4.4.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

zod is vulnerable to Prototype Pollution in versions 1.0.0 - 4.3.6.

How to fix this

Upgrade the zod library to the patch version.