CVE-2025-56200 validator.js has a URL validation bypass vulnerability in its isURL function
MediumCVSS 6.1
EPSS 0.32%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
A URL validation bypass vulnerability exists in validator.js through version 13.15.15. 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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm validator(npm) | < 13.15.20 | 13.15.20 | Fixed |
| validator project validator | <= 3.15.15 | after 3.15.15 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm validator(npm) | < 13.15.20 | 13.15.20 |
| validator project validator | <= 3.15.15 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- gist.github.com exploit third-party-advisory
- gist.github.com exploit third-party-advisory
- github.com product
- validatorjs.com
- github.com
- github.com patch
- github.com patch
- github.com
- github.com