Vulnerability library
Security checkJanuary 27, 2023

Improper Input Validation in url-js

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmurl-js

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for Improper Input Validation in url-js and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023