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-2020-19697 Vulnerability in maven package org.webjars.bower:editor.md
CVE-2021-21252 Vulnerability in maven package org.webjars.bower:jquery-validation
CVE-2017-20160 Vulnerability in npm package express-param
CVE-2022-31160 Vulnerability in maven package org.webjars:jquery-ui
CVE-2019-17573 Vulnerability in maven package org.apache.cxf:cxf-bundle