Intel

AIKIDO-2026-10706

zod is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

53

Medium Risk

This Affects:

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

TL;DR

The Base64 string validator treated inputs according to decoding behavior where ASCII whitespace could be ignored before decoding, so strings containing whitespace could still be accepted as valid Base64 even when they should be rejected under strict Base64 rules. That weakens the guarantee that passing validation implies a canonical strict Base64 payload. The implementation now rejects whitespace so invalid Base64 inputs are not normalized into passing values.

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 Improper Input Validation in versions 1.0.0 - 4.3.6.

How to fix this

Upgrade the zod library to the patch version.