validator.js has a URL validation bypass vulnerability in its isURL function
Moderate severity
GitHub Reviewed
Published
Sep 30, 2025
to the GitHub Advisory Database
•
Updated Oct 27, 2025
Description
Published by the National Vulnerability Database
Sep 30, 2025
Published to the GitHub Advisory Database
Sep 30, 2025
Reviewed
Oct 13, 2025
Last updated
Oct 27, 2025
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.
References