CVE-2025-56200: validator.js URL Validation Bypass Vulnerability

validator Updated 13 Oct 2025

Summary

30/09/2025
No i
Moderate
6.1

CVE-2025-56200: validator.js has a URL validation bypass vulnerability in its isURL function. Affects validator versions < 13.15.15. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

validator.js is a popular library used in Node.js applications for validating and sanitizing strings, particularly URLs, emails, and other formats. It provides developers with a robust set of tools to ensure that user input is safe and conforms to expected formats. However, a vulnerability has been identified in the isURL function of validator.js, which can lead to security risks if not addressed.

Vulnerability Detail

A URL validation bypass vulnerability exists in validator.js through version 13.15.15. The isURL() function incorrectly uses '://' as a delimiter to parse protocols, while browsers utilize ':' as the delimiter. This discrepancy allows attackers to craft malicious URLs that can bypass protocol and domain validation, potentially leading to Cross-Site Scripting (XSS) and Open Redirect attacks. The vulnerability is classified under CWE-79, indicating its relation to improper input validation.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can implement additional validation checks in your application to ensure that URLs conform to expected formats. For example, you can use regular expressions to validate URLs before processing them. Here’s a simple example in JavaScript:

const isValidURL = (url) => {
  const regex = /^(https?:\/\/)?([\w.-]+)(:[0-9]{1,5})?(\/.*)?$/;
  return regex.test(url);
};

// Usage
if (isValidURL(userInputURL)) {
  // Proceed with the URL
} else {
  // Handle invalid URL
}

Conclusion

The validator.js URL validation bypass vulnerability (CVE-2025-56200) poses a significant risk to applications using the affected versions of the library. It is crucial for developers to update to the latest version to protect against potential attacks. Additionally, implementing temporary workarounds can help mitigate risks until the update is applied.

See every vulnerability recorded for validator →

Share this vulnerability

FAQ

CVE-2025-56200 is a vulnerability in the validator.js library that allows attackers to bypass URL validation, potentially leading to security issues like XSS and Open Redirect attacks.

The vulnerability affects all versions of validator.js up to and including version 13.15.15.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application by uploading your package-lock.json file or using the Vulert playground without signup.

The CVSS score of this vulnerability is 6.1, indicating a moderate level of risk.

If you cannot update the package right away, implement additional validation checks in your application to mitigate the risk until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for validator.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback