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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | validator | < 13.15.20 | 13.15.20 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-56200
- https://github.com/validatorjs/validator.js/issues/2600
- https://github.com/validatorjs/validator.js/pull/2608
- https://github.com/validatorjs/validator.js/commit/cbef5088f02d36caf978f378bb845fe49bdc0809
- https://gist.github.com/junan-98/27ae092aa40e2a057d41a0f95148f666
- https://gist.github.com/junan-98/a93130505b258b9e4ec9f393e7533596
- https://github.com/validatorjs/validator.js
- https://github.com/validatorjs/validator.js/releases/tag/13.15.20
- http://validatorjs.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- npm
- Package
validator- Disclosed
- 30.09.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-9965-vmph-33xx - CC BY 4.0
Vulnerability history: validator
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 10.2017 11.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 8
Disclosures per year
- 2017: 4
- 2018: 1
- 2019: 0
- 2020: 1
- 2021: 2
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 2
- 2026: 0
-
validator.js has a URL validation bypass vulnerability in its isURL function this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.