Improper Input Validation in package url-js allows for Hostname Spoofing

Improper Input Validation in package url-js allows for Hostname Spoofing

CVE-2022-25839 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

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.

Learn more about our Web Application Penetration Testing UK.