All Stories
npmdata-exposed
The Email Validator That Exported Our User List
by Marco DelucaOct 31, 2026
The setup
A signup form needed client-side email validation. The assistant suggested a kit with hooks, a Zod schema and TypeScript definitions, which is more than the one-line regex I wanted, so I used it.
What it did
The validator also exported a syncContacts helper. Our form called it once per submission because the docs said to — and it batched every email address the app had ever validated into a request to a third-party endpoint when the tab was backgrounded.
The tell
A privacy review flagged an outbound POST in the network tab that had nothing to do with validation. The bundle size increase from the previous validator was 240 KB.
What it cost
A GDPR notification to 6,200 people, because the validated addresses were, by definition, our entire customer list.
Involved package: react-email-validator-kitCheck in scanner →
Was this story helpful?