zod is vulnerable to Improper Input Validation
53
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
zod is vulnerable to Improper Input Validation 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