Medium, CVSS 5.3npmAmendedPublished
Improper Input Validation in url-js
CVE-2022-25839 · GHSA-rf54-44jr-q5vf
- Affected
- npm url-js < 2.1.0
- Fixed in
- 2.1.0· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 2.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.