validator
13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed
Your version
12.2.0 is the newest release of 12.x.
In short
7 new2 changed
Security
4 advisories affect 12.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-xx4c-jj58-r7x6 · 19 Nov 2021Fixed in 13.7.0
- ModerateInefficient Regular Expression Complexity in validator.jsGHSA-qgmg-gppg-76g5 · 3 Nov 2021Fixed in 13.7.0
Release note
Added
isOctal()validatorAdded
isSlug()validatorAdded
isBIC()validator for bank identification codesAllow uppercase chars in
isHash()Allow additional prefixes in
isHexadecimal()Allow additional separators in
isMACAddress()Better defaults for
isLength()Bug fixes
New and improved locales
(#1059,
#1060,
#1069,
#1073,
#1082,
#1092,
#1121,
#1125,
#1132,
#1152,
#1165,
#1166,
#1174)