Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/validator@3.22.1
purl pkg:npm/validator@3.22.1
Next non-vulnerable version 13.15.22
Latest non-vulnerable version 13.15.22
Risk 4.0
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-4zv9-cpgr-nyep
Aliases:
CVE-2025-56200
GHSA-9965-vmph-33xx
validator.js has a URL validation bypass vulnerability in its isURL function 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.
13.15.20
Affected by 1 other vulnerability.
VCID-5y3j-q5mp-p3cf
Aliases:
CVE-2021-3765
GHSA-qgmg-gppg-76g5
validator.js is vulnerable to Inefficient Regular Expression Complexity
13.7.0
Affected by 2 other vulnerabilities.
VCID-hr9j-sp88-yqcp
Aliases:
CVE-2025-12758
GHSA-vghf-hv5q-vc2g
Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements 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.
13.15.22
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (2)
Vulnerability Summary Aliases
VCID-q24m-nb1z-suek The validator module, versions < 3.22.1 are vulnerable to Regular Expression Denial of Service ([ReDoS](http://en.wikipedia.org/wiki/ReDoS)) in the isURL method. CVE-2014-8882
GHSA-f5w6-r7rg-mcgq
GMS-2020-793
VCID-swkj-b4bq-rfgw The validator module is vulnerable to Regular Expression Denial of Service (ReDoS) in the isURL method. GMS-2014-24

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T06:27:25.871408+00:00 GitLab Importer Affected by VCID-hr9j-sp88-yqcp https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/validator/CVE-2025-12758.yml 38.6.0
2026-06-06T06:12:11.013353+00:00 GitLab Importer Affected by VCID-4zv9-cpgr-nyep https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/validator/CVE-2025-56200.yml 38.6.0
2026-06-06T01:04:38.919725+00:00 GitLab Importer Affected by VCID-5y3j-q5mp-p3cf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/validator/CVE-2021-3765.yml 38.6.0
2026-06-05T21:12:50.364782+00:00 GHSA Importer Fixing VCID-q24m-nb1z-suek https://github.com/advisories/GHSA-f5w6-r7rg-mcgq 38.6.0
2026-06-04T17:23:55.782176+00:00 GithubOSV Importer Fixing VCID-q24m-nb1z-suek https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-f5w6-r7rg-mcgq/GHSA-f5w6-r7rg-mcgq.json 38.6.0
2026-06-04T16:20:11.801384+00:00 GitLab Importer Fixing VCID-q24m-nb1z-suek https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/validator/GMS-2020-793.yml 38.6.0
2026-06-02T04:36:19.614558+00:00 GitLab Importer Fixing VCID-swkj-b4bq-rfgw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/validator/GMS-2014-24.yml 38.6.0
2026-06-02T03:45:01.639006+00:00 Npm Importer Fixing VCID-q24m-nb1z-suek https://github.com/nodejs/security-wg/blob/main/vuln/npm/42.json 38.6.0