chore(deps): update dependency validator to v13.15.22 [security] #677
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.6.0→13.15.22GitHub Vulnerability Alerts
CVE-2021-3765
validator.js prior to 13.7.0 is vulnerable to Inefficient Regular Expression Complexity
GHSA-xx4c-jj58-r7x6
Impact
Versions of
validatorprior to 13.7.0 are affected by an inefficient Regular Expression complexity when using thertrimandtrimsanitizers.Patches
The problem has been patched in validator 13.7.0
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 @Tarasz57v13.12.0Compare Source
New Features / Validators
isAbaRouting@songyuewFixes, New Locales and Enhancements
isLicensePlateadd Pakistanien-PKlocale @anasshakilisPortfix invalid leading zeros @anasshakilisTaxIDadded Argentinaes-ARlocale @estefrareisDatetimezone offset fix @tomaspanekisPassportNumberaddedZAlocale @GMorris-professionalisMobilePhone:en-MWlocale @SimranSiddiquiam-AMlocale @AlexKrupkoisPostalAddressfixNLlocale @RobinvanderVlietisISO4217addSLEcurrency @urgisStrongPasswordfix symbolRegex to include\@nandavikasisVATfixedKZlocale @MatthieuLemoineisAlpha,isAlphanumericaddedeolocale @RobinvanderVlietisIBANadd AlgeriaDZlocale @thibault-lrisVATimproveAUlocale @matthewberrymanisUUIDadd support for v7 @rusconisTaxIDadd Ukraineuk-UAlocale @arttigerisDatedisallow hiphen before year @Sumit-tech-joshiv13.11.0Compare Source
New Features / Validators
isFreightContainerID: for shipping containers IDs @songyuewisMailtoURI@uksarkarFixes, New Locales and Enhancements
isIBANaddMAlocale @lroudgeisCreditCardrefactor @pano9000isLocaleadd support for more language tags @kwahomeisVATforCU@jimmyorpheusisJWT@Prathamesh061IsFQDNtest enhancements @aalekhpatel07isAlpha,isAlphanumericforkk-KZ@BekStar7isEmailsupportallow_underscores@guspowerisDateenhance Date declaration compatibility across multiple environments @CiprianSisIBANadd white and blacklist options to the isIBAN validator @edilsonisEmaildo not allow non-breaking space in user part @jeremy21212121isMobilePhone:so-SO@ohersifr-CF@cheboies-CU@klaframboisepl-PL@czerwony03fr-WF@aidos42ar-SD@Hussienmav13.9.0Compare Source
New Features / Validators
isISO6391: add ISO 639-1 validator @braaarisLuhnNumber@ST-DDTFixes and Enhancements
#1865
isMACAddress: add EUI-validation @WikiRik @tux-tn#1888
isBase32: add option for Crockford's base32 alternative @BigOsvaap#1916
isDataURI: fix mediaType format @temoffey#1920
isEmail: addhost_whitelistoption @poor-coder#1939
isFQDN: fixallow_numeric_tldoption @BigOsvaap#1962
isIP: refactor @UnKnoWn-Consortium#1967
isLength@ikkyu-3#1992
isMagnetURI@Rhilip @tux-tn#1995
isURL: fix check for host @mortbauer#2008
isCreditCard@brianwhaley#2075
isAfter: allow usage of option object @WikiRik#2114
isRgbColor@pano9000#2122
isDataURI: fix MIME types with underscores @pano9000#2148
isStrongPassword@sandmule#2157
isISBN: allow usage of option object @WikiRik#2170
isEmail: fixignore_max_lengthfor FQDN @sakhmedbayev#2020
isFloat: fix comma(,) passing as float @frederike-raminDocumentation fixes:
Code Refactors:
New and Improved Locales
isAlpha,isAlphanumeric:bn-BD@rak810si-LK@melkorCBAja-JP@starcharlesko-KR@DongkyuuuuisBIC:XK@import-brainisIdentityCard:hk-HK@DongkyuuuuisMobilePhone:my-MM, @ferdousulhaquede-DE, @thomaschaafen-LS, @DevilsAutumnel-CY, @ikerasiotises-NI, @ajGingrichaz-AZ, @shaanaliyevir-IR, @ArashST79ky-KG, @arsalanfirooziar-YE,ar-EH,fa-AF, @Mustafiz04ro-MD, @mik7upar-YE,en-BS, @savannahvaithka-GE, @avkvakpt-BR, @jhcaiafa @matheusnascgomeses-HN, @ademyan05nl-AW, @adida948en-JM, @ademyan05mn-MN, @rksp25fr-BJ, @rkuma552 @rksp25mg-MG, @ShivangiRai1310en-PG, @kai2128en-AG, @jiaweilowen-AI, @elaine1129en-KN, @Eelyneeefr-CD, @coolbeatz71en-SS, @cheboidv-MV, @pano9000en-HN, @WikiRikar-KW, @Yazan-KE @WikiRikel-GR, @pano9000en-BM, @pano9000ms-MY, @pano9000ro-RO, @pano9000isLicensePlate:sv-SE, @elmaxehu-HU, @szabolcstarnaien-NI, @NishantJSde-DE, @bennetfabiande-DE, @bennetfabianes-AR, @alvarocastroisPassportNumber:JM,KZ,LI,NZ@JuanFMLTH@TonPC64 @braaarAZ@djeks922PH,PK@digambar-t7isPostalCode:BA, @matheusnascgomesBY, @pano9000IR, @pano9000isTaxID:en-CA, @boonya'AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'EL', 'HU', 'IE', 'LV', 'LT', 'LU', 'MT', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'AL', 'MK', 'AU', 'BY', 'CA', 'IS', 'IN', 'ID', 'IL', 'KZ', 'NZ', 'NG', 'NO', 'PH', 'RU', 'SM', 'SA', 'RS', 'CH', 'TR', 'UA', 'UZ', 'AR', 'BO', 'BR', 'CL', 'CO', 'CR', 'EC', 'SV', 'GT', 'HN', 'MX', 'NI', 'PA', 'PY', 'PE', 'DO', 'UY', 'VE'@Dev1lDragon13.7.0
New Features
isISO4217, currency code validator @jpaya17Fixes and Enhancements
isFQDN: addallow_wildcardoption @fasenderosisRFC3339: Disallow prepended and appended strings to RFC 3339 date-time @jmacmahonIBANexport list of country codes that implement IBAN @dror-heller @fedeciisBoolean: addlooseoption @brybrophyisISO31661Alpha3: perf @jpaya17isDate: allow users to strictly validate dates with.as delimiter @flymansisCreditCard: fix for Union Pay cards @shreyassai123isEmail: replace all dots in GMail length validation @DasDingGehtNichtisURL: addallow_fragmentsandallow_query_components@cowboy-bebugisISO31661Alpha2: perf @jpaya17isMagnetURI@tux-tnrtrim: remove regex to prevent ReDOS attack @tux-tnisURL: higher priority towhitelist@deepanshu2506isURL: allow url with colon and no port @MatteoPierroisUUID: fix fornullversion argument @theteladrasisFQDN: check more special chars @MatteoPierroisURL: allow URL with an empty user @MiguelSavignanounescape: fixed bug where intermediate string contains escaped @Marcholiocontains: can check that string contains seed multiple times @MarcholioisUUID: add support for validation ofv1andv2@theteladrasisEmail: addhost_blacklistoption @fedeciNew and Improved Locales
isAlpha,isAlphanumeric:hi-IN@MiKr13fi-FI@MarcholioisPassportNumber:ID@rubiinCN@anirudhgiriPL@RonqnRU@Theta-DevisPostalCode:LK@nimanthadilzisIdentityCard:TH@tithanayutPL@wiktorwojcik112 @fedeci @tux-tnLK@nimanthadilz @tux-tnFI@MarcholioisMobilePhone:de-DE@AnnaMariaJansenvi-VN@luisrivaszh-CN@laulujan @yisibles-VE@islasjuanpnl-BE@divikshrivastavaes-CU@pasagedeves-SV, @herejear-PS, @brendan-cen-BM@HackProAITdz-BT@lakshayr003en-BW, @mgndolanfr-CM@beckettnormingtonen-PK@ammad20120 @tux-tntk-TM, @Husan-Eshonquloven-GY, @mfkrausesi-LK@Madhavi96fr-PF, @herejeen-KI, @c-tannerhu-HU@danielTiringerfr-BF,en-NA@lakshayr003tg-TJ@mgnssisLicensePlate:cs-CZ@filiptronicekfi-FI@MarcholioisVAT:NL@zeno4ever13.6.1
New features:
isLicensePlate@firlusFixes and Enhancements:
isHSLandisEmail@tux-tnisURL: Allow URLs to have only a username in the userinfo subcomponent @jbuchmann-coostoisISIN: optimization @bmacnaughtonisIP: improved pattern for IPv4 and IPv6 @ognjenjevremovic[A-z]regex range on some validators @bmacnaughtonisMacAddress: improve regexes and options @fedeciisSlugandrtrim@fedeciisIPRange: add support for IPv6 @neilimeisEAN: add support for EAN-14 @varsubham @tux-tnisStrongPassword: add@as a valid symbol @stingallemanisBtcAddress: add base58 @ezkemboiisFQDN: numeric domain names @tux-tnNew and Improved locales:
isIdentityCard,isPassportNumber:IR@mhf-ir @fedeciar-LY@asghaier76 @tux-tnMY@stranger26 @tux-tnisMobilePhone:zh-CN@Akira0705lv-LV@AntonLukicheven-GH@ankorGHmz-MZ@salmento @tux-tnvi-VN@kyled7en-SG@liliwei25de-CH,fr-CH,it-CH@dinfektedes-CO@ezkemboi @tux-tnar-OM@dev-snapt-AO@AdilsonFuxeisPostalCode:KR@greatSuminiisTaxID:pt-BR@mschunkeel-GR@dspinellisisVAT:IT@fedeci13.5.013.5.1New features:
isVAT#1463 @ CodingNaggerisTaxID#1446 @tplessasisBase58#1445 @ezkemboiisStrongPassword#1348 @door-bellFixes and Enhancements:
isISO8601: addstrictSeparator@brostone51isFQDN: make more strict @CristhianMotocheisFQDN:allow_underscoreoption @gibson042isEmail: character blacklisting @rubiinisURL: addedrequire_portoption @yshanliisEmail: respectignore_max_lengthoption @evantahlerisDate: add strictMode and prevent mixed delimiters @tux-tnisAlpha: supportignoreoption @mum-never-proudNew and Improved locales:
isAlpha,isAlphanumeric:id-IDand docs update [@bekicot](httpsConfiguration
📅 Schedule: Branch creation - "" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.