validator
13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed
Upgrading validator From 10.5.0 to 10.11.0
7 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
3 advisories still affect 10.11.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
New locale
- fixed
Fix imports like
import .. from "validator/lib/.."
- new
- new
Added
isIdentityCard()
- new
10.7.1nothing new or fixed in the note
- new
Added
isMagnetURI()to validate magnet URIs - new
Added
isJWT()to validate JSON web tokens
- new
7 other lines we could not sort, mostly version bumps
- 10.10.0
isISO8601()strict mode now works in the browser - 10.9.0
Relaxed
isJWT()signature requirements - 10.8.0
Better error when validators are passed an invalid type
- 10.8.0
- 10.7.1
Ignore case when checking URL protocol
- 10.7.1
Locale fix
- 10.6.0
Updated
isMobilePhone()to match any locale's pattern by default