by yuvalkarmi · 1mo ago · 0 comments
On September 21, someone used Colin's git credentials to push this compromised code into the project, Colin caught it, and reverted it that same day (PR #6620). He subsequently did release 4.6.6 on October 11, but it did NOT contain the infected code.
Btw, Zod wasn't the only package targeted - same attack was attempted against standard-schema and nub. Nub DID make it to npm, but npm's malware scanning blocked it.
Looks like a legit (well, illegitimate) attempted supply-chain attack, but no actual Zod release was compromised.
So I think it's not a great leap to think this commit actually made it to 4.6.6 on npm.
Good that it didn't though!
Thank god. Zod reached like 350M weekly downloads recently.
[0] https://github.com/orgs/community/discussions/208477#discuss...
>They cut and submitted a compromised release to npm; npm just happened to block the publishing.
The point is that this is incorrect. A compromised release was not submitted to npm. It didn't make it beyond the git repo.