validator
13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed
Upgrading validator From 4.1.0 to 4.9.0
13 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
3 advisories still affect 4.9.0
- validator.js has a URL validation bypass vulnerability in its isURL functionmoderate · GHSA-9965-vmph-33xx
- Inefficient Regular Expression Complexity in validator.jsmoderate · GHSA-qgmg-gppg-76g5
- Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elementshigh · GHSA-vghf-hv5q-vc2g
Upgrading to 13.15.22 clears them.
Release by release
- new
Added a Russian locale to
isAlpha()andisAlphanumeric()
- new
- new
Added Spanish, French, Portuguese and Dutch support for
isAlpha()andisAlphanumeric() - new
Added a Brazilian locale to
isMobilePhone() - fixed
Fix the client-side version when used with RequireJS
- new
4.7.1nothing new or fixed in the note
- new
Added a German locale to
isMobilePhone(),isAlpha()andisAlphanumeric() - new
Added a Finnish locale to
isMobilePhone()
- new
- fixed
Fix coercion of objects:
Object.toString()is[object Object]not""
- fixed
- new
Added a Spanish locale to
isMobilePhone() - fixed
Fix string coercion of objects created with
Object.create(null)
- new
- fixed
Fix a timezone issue with short-form ISO 8601 dates, e.g.
validator.isDate('2011-12-21')
- fixed
4.5.1nothing new or fixed in the note
6 other lines we could not sort, mostly version bumps
- 4.9.0
Remove the restriction on adjacent hyphens in hostnames
- 4.8.0
Reject IPv4 addresses with invalid zero padding
- 4.7.1
Use node-depd to print deprecation notices
- 4.7.0
Print a deprecation warning if validator input is not a string (1f67e1e). Note that this will be an error in v5.
- 4.5.1
Make
isLength()/isByteLength()accept{min, max}as options object. - 4.5.0