fix(deps): update dependency validator to v13.15.22 [security] #1711
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
13.12.0->13.15.22GitHub 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.22Compare Source
Fixes, New Locales and Enhancements
isURL: fix regression with hostnames with ports @mbtoolsisLength: improve handling Unicode variation selectors @koral--v13.15.20Compare Source
Fixes, New Locales and Enhancements
isMobilePhone: addar-QAlocale @WardKhaddourisAlpha/isAlphanuneric: add Indic locales (ta-IN,te-IN,kn-IN,ml-IN,gu-IN,pa-IN,or-IN) @avadootharajeshisBase64: improve padding regex @KrayzeeKevisVAT: improveFRlocale @iamAmerisURL: improve protocol detection. Resolves CVE-2025-56200 @theofidryv13.15.15Compare Source
Fixes, New Locales and Enhancements
isMobilePhoneel-CYlocale @rezk2llpt-AOlocale @renaldodevar-OMlocale @tomcastroisIP: allow usage of option object @pixelbucket-devisPassportNumber: improveCAlocale @evanbechtolisBase64: improve validation based on RFC4648 @aseyfpourisPostalCode: improveFRlocale @Rajput-BalramisBefore: allow usage of option object @pixelbucket-devisRgbColor: allow second digit in rgba alpha value @contrololisIP: improve IPv6 regex @ShreySinha02isPostalCode: addPKlocale @mateeni-devisPostalCode: improveTWlocale @CrocsxisPassportNumber: improveUSlocale @yitzchak-schechterisUUID: addlooseoption @bc-misPostalCode: addBDlocale @tanvirrbisLicensePlate: improvept-PTlocale @castrosuv13.15.0Compare Source
New Features / Validators
isISO31661Numeric@RobinvanderVlietisULID@arafatknisISO15924@xDivisionByZeroxFixes, New Locales and Enhancements
isMobilePhonees-GTlocale @ignaciosuarezquilisen-GBlocale @ihmpaveluk-UAlocale @arttigerky-KGlocale @sadralieven-ZMlocale @sonikishanen-GHlocale @NanaAb-116mk-MKlocale @eshward95sq-ALlocale @nichoolaisBtcAddresssupport all address formats and testnets @madokeisIBANimproveVGregex @ST-DDTisISO4217update currency codes @cbodtorfisIdentityCardaddPKlocale @Daniyal-QureshiisEmailfix blacklist_chars @keshavlingalaisInt/isFloathandle undefined and null values @Daniyal-QureshiisPostalCodeaddCOlocale @jorgevrgsisPassportNumberexportpassportNumberLocales@derekparnellisRgbColoraddallowSpacesoption @a-h-iisUUIDrequire valid variant field and require RFC9562 UUID in versionall@broofaisURLaddmax_allowed_lengthoption @pinkieskyisEmailreject starting with double quotes @code0emperorisLicensePlateadden-SGlocale @Sabarinathan07normalizeEmailaddyandex_convert_yandexruoption @AayushGHisDatereturn false instead of Error in certain cases @pano9000isLengthadddiscreteLengthsoption @Suven-pisDatedisallow mismatching length instrictMode@sonikishanisISO6346set check digit to 0 if remainder is 10 @joelcuyisPostalCodeimproveBRlocale @ticmaisdevisEmailallow regexp inhost_whitelistandhost_blacklist@weikangchiaisIBANimproveIE/PSregex @Tarasz57Configuration
📅 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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.