Description
The package url-js before 2.1.0 is 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.
Recommendation
Update the url-js package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.1.0
- Patched version(s): 2.1.0
References
Related Issues
- Improper Input Validation in Deap - CVE-2018-3749
- Apostrophe has a Weak Password Recovery Mechanism for Forgotten Password and Improper Input Validation - CVE-2026-45013
- Improper Validation and Sanitization in url-parse - CVE-2020-8124
- jquery-validation Regular Expression Denial of Service due to arbitrary input to url2 method - CVE-2022-31147
You might also like:
- Tags:
- npm
- url-js
Anything's wrong? Let us know Last updated on January 27, 2023


