When Zero‑Width Isn’t Zero: How I Found and Fixed a Vulnerability

January 28, 2026

When you set a max length on a form field or API, you expect it to hold. But what if a four-character string could secretly carry 10,000 extra bytes of invisible data, crashing your database or bypassing your validation? That was the vulnerability I found and fixed in the popular JavaScript library validator. It was a subtle bug involving Unicode Variation Selectors that allowed attackers to inject massive payloads while still passing length checks.

Project link: https://www.thedroidsonroids.com/blog/when-zero-width-isnt-zero

Nifty tech tag lists from Wouter Beeftink