Description
The package url-js before 2.1.0 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.
Remediation
References
https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0
https://snyk.io/vuln/SNYK-JS-URLJS-2414030
Related Vulnerabilities
CVE-2018-1999003 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2020-5413 Vulnerability in maven package org.springframework.integration:spring-integration
CVE-2021-23386 Vulnerability in npm package dns-packet
CVE-2021-37694 Vulnerability in npm package @asyncapi/java-spring-cloud-stream-template
CVE-2020-26870 Vulnerability in maven package org.webjars.bower:dompurify