fix(deps): update dependency validator to v13.15.22 [security]
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| validator | 13.12.0 -> 13.15.22 |
GitHub Vulnerability Alerts
CVE-2025-56200
A URL validation bypass vulnerability exists in validator.js prior to version 13.15.20. The isURL() function uses '://' as a delimiter to parse protocols, while browsers use ':' as the delimiter. This parsing difference allows attackers to bypass protocol and domain validation by crafting URLs leading to XSS and Open Redirect attacks.
CVE-2025-12758
Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the isLength() function that does not take into account Unicode variation selectors (\uFE0F, \uFE0E) appearing in a sequence which lead to improper string length calculation. This can lead to an application using isLength for input validation accepting strings significantly longer than intended, resulting in issues like data truncation in databases, buffer overflows in other system components, or denial-of-service.
Release Notes
validatorjs/validator.js (validator)
v13.15.22
Fixes, New Locales and Enhancements
- #​2622
isURL: fix regression with hostnames with ports @​mbtools - #​2616
isLength: improve handling Unicode variation selectors @​koral-- - Doc fixes and others:
v13.15.20
Fixes, New Locales and Enhancements
- #​2556
isMobilePhone: addar-QAlocale @​WardKhaddour - #​2576
isAlpha/isAlphanuneric: add Indic locales (ta-IN,te-IN,kn-IN,ml-IN,gu-IN,pa-IN,or-IN) @​avadootharajesh - #​2574
isBase64: improve padding regex @​KrayzeeKev - #​2584
isVAT: improveFRlocale @​iamAmer - #​2608
isURL: improve protocol detection. Resolves CVE-2025-56200 @​theofidry - Doc fixes and others:
v13.15.15
Fixes, New Locales and Enhancements
isMobilePhone- #​2514 improve
el-CYlocale @​rezk2ll - #​2512 improve
pt-AOlocale @​renaldodev - #​2502 improve
ar-OMlocale @​tomcastro
- #​2514 improve
- #​2089
isIP: allow usage of option object @​pixelbucket-dev - #​2526
isPassportNumber: improveCAlocale @​evanbechtol - #​2491
isBase64: improve validation based on RFC4648 @​aseyfpour - #​2479
isPostalCode: improveFRlocale @​Rajput-Balram - #​2088
isBefore: allow usage of option object @​pixelbucket-dev - #​2346
isRgbColor: allow second digit in rgba alpha value @​controlol - #​2453
isIP: improve IPv6 regex @​ShreySinha02 - #​2052
isPostalCode: addPKlocale @​mateeni-dev - #​2529
isPostalCode: improveTWlocale @​Crocsx - #​2550
isPassportNumber: improveUSlocale @​yitzchak-schechter - #​2553
isUUID: addlooseoption @​bc-m - #​2551
isPostalCode: addBDlocale @​tanvirrb - #​2555
isLicensePlate: improvept-PTlocale @​castrosu - Doc fixes and others:
v13.15.0
New Features / Validators
- #​2399
isISO31661Numeric@​RobinvanderVliet - #​2294
isULID@​arafatkn - #​2215
isISO15924@​xDivisionByZerox
Fixes, New Locales and Enhancements
isMobilePhone- #​2395 add
es-GTlocale @​ignaciosuarezquilis - #​1971 improve
en-GBlocale @​ihmpavel - #​2359 improve
uk-UAlocale @​arttiger - #​2350 improve
ky-KGlocale @​sadraliev - #​2482 improve
en-ZMlocale @​sonikishan - #​2362 improve
en-GHlocale @​NanaAb-116 - #​2500 add
mk-MKlocale @​eshward95 - #​2534 improve
sq-ALlocale @​nichoola
- #​2395 add
- #​2406
isBtcAddresssupport all address formats and testnets @​madoke - #​2339
isIBANimproveVGregex @​ST-DDT - #​2332
isISO4217update currency codes @​cbodtorf - #​2291
isIdentityCardaddPKlocale @​Daniyal-Qureshi - #​2414
isEmailfix blacklist_chars @​keshavlingala - #​2416
isInt/isFloathandle undefined and null values @​Daniyal-Qureshi - #​2415
isPostalCodeaddCOlocale @​jorgevrgs - #​2404
isPassportNumberexportpassportNumberLocales@​derekparnell - #​2029
isRgbColoraddallowSpacesoption @​a-h-i - #​2421
isUUIDrequire valid variant field and require RFC9562 UUID in versionall@​broofa - #​2439
isURLaddmax_allowed_lengthoption @​pinkiesky - #​2437
isEmailreject starting with double quotes @​code0emperor - #​2333
isLicensePlateadden-SGlocale @​Sabarinathan07 - #​2441
normalizeEmailaddyandex_convert_yandexruoption @​AayushGH - #​2443
isDatereturn false instead of Error in certain cases @​pano9000 - #​2474
isLengthadddiscreteLengthsoption @​Suven-p - #​2481
isDatedisallow mismatching length instrictMode@​sonikishan - #​2492
isISO6346set check digit to 0 if remainder is 10 @​joelcuy - #​2493
isPostalCodeimproveBRlocale @​ticmaisdev - #​2494
isEmailallow regexp inhost_whitelistandhost_blacklist@​weikangchia - #​2518
isIBANimproveIE/PSregex @​Tarasz57 - Doc fixes and others:
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.