Improper Validation of Specified Type of Input Affecting validator package, versions <13.15.20


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-VALIDATOR-13395830
  • published17 Oct 2025
  • disclosed10 Apr 2025
  • creditjunwon seo

Introduced: 10 Apr 2025

CVE-2025-56200  (opens in a new tab)
CWE-1287  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade validator to version 13.15.20 or higher.

Overview

validator is a library of string validators and sanitizers.

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input in the isURL() function which does not take into account : as the delimiter in browsers. An attackers can bypass protocol and domain validation by crafting URLs that exploit the discrepancy in protocol parsing that can lead to Cross-Site Scripting and Open Redirect attacks.

CVSS Base Scores

version 4.0
version 3.1