@colinhacks we're a bit surprised by that response honestly, especially given what the documentation says about v3 still receiving security fixes and bug fixes.
If no new v3 versions will be released, how are existing users supposed to receive those fixes? This seems contradictory to what is in the Zod documentation.
Also, whether the advisory was written by an AI agent or not, the vulnerability is real. The issue demonstrates a reproducible resource exhaustion problem where Zod continues validating an oversized array and potentially accumulates a huge number of errors, even when .max() has already evaluated the input to be too large by itself.
I understand encouraging users to migrate to v4, but that's completely different from providing security fixes for v3 as promised... Could you clarify how these two positions, both written in the documentation, are consistent between themselves?
As users relying on Zod across multiple repositories, and surely I'm not alone on this, we'd appreciate a clear answer on this topic.
Reacted by Alessandro Colace, Dayvid Castro, Dayvid Castro, andrewaustin, Manel, Joren Verbesselt, s-aree, realsarm, martzology, 花雪 and 1 more