validator
13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed
Upgrading validator From 5.0.0 to 5.7.0
7 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
3 advisories still affect 5.7.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 an Algerian locale to
isMobilePhone() - new
Added a Polish locale to
isMobilePhone() - fixed
Fixed a regex denial of service in
trim()andrtrim() - fixed
Fixed the Hungarian locale in
isAlpha()andisAlphanumeric()
- new
- new
Added Danish locale to
isMobilePhone() - new
Added Hungarian locales to
isAlpha(),isAlphanumeric()andisMobilePhone()
- new
- new
Added an
allow_leading_zeroesoption toisInt() - new
Added a Canadian locale to
isMobilePhone()
- new
- new
Added a
isDataURI()validator - new
Added Czech locales
- fixed
Fixed a bug with
isURL()when protocol was missing and "://" appeared in the query
- new
- new
Added a
unescape()HTML function - new
Added a Malaysian locale to
isMobilePhone() - new
Added Polish locales to
isAlpha()andisAlphanumeric() - new
Added Turkish locales to
isAlpha(),isAlphanumeric()andisMobilePhone() - new
Allow >1 underscore in hostnames when using
allow_underscores
- new
2 other lines we could not sort, mostly version bumps
- 5.4.0
Accept Union Pay credit cards in
isCreditCard() - 5.3.0
Adjust Chinese mobile phone validation