Advisory

GHSA-9965-vmph-33xx

Also known as: CVE-2025-56200

Summary

validator.js has a URL validation bypass vulnerability in its isURL function

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-09-30 18:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

validator

npm · All systems

Affected

  • introduced 0, fixed 13.15.20 (semver)

Fixed versions

13.15.20

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences