url-js@2.0.0 vulnerabilities

Simple URL parser, similar to DOM URL

Direct Vulnerabilities

Known vulnerabilities in the url-js package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Improper Input Validation

url-js is a Simple URL parser, similar to DOM URL

Affected versions of this package are vulnerable to Improper Input Validation due to improper parsing, which makes it is possible for the hostname to be spoofed. http://\\\\\\\\localhost and http://localhost are the same URL. However, the hostname is not parsed as localhost, and the backslash is reflected as it is.

How to fix Improper Input Validation?

Upgrade url-js to version 2.1.0 or higher.

<2.1.0