validator
13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed
Your version
5.7.0 is the newest release of 5.x.
In short
1 new1 fixed4 changed
Security
3 advisories affect 5.0.0; 13.15.22 fixes them
- HighValidator is Vulnerable to Incomplete Filtering of One or More Instances of Special ElementsGHSA-vghf-hv5q-vc2g · 27 Nov 2025Fixed in 13.15.22
- Moderatevalidator.js has a URL validation bypass vulnerability in its isURL functionGHSA-9965-vmph-33xx · 30 Sep 2025Fixed in 13.15.20
- ModerateInefficient Regular Expression Complexity in validator.jsGHSA-qgmg-gppg-76g5 · 3 Nov 2021Fixed in 13.7.0
Release note
Migrate to ES6
Break the library up so that individual functions can be imported
Remove auto-coercion of input to a string
Remove the
extend()functionAdded Arabic locales to
isAlpha()andisAlphanumeric()Fix validation of very large base64 strings