Vulnerability library
Security checkJanuary 28, 2023

parse-url parses http URLs incorrectly, making it vulnerable to host name spoofing

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

Medium severitynpmparse-url

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

parse-url prior to 8.1.0 is vulnerable to Misinterpretation of Input. parse-url parses certain http or https URLs incorrectly, identifying the URL’s protocol as ssh. It may also parse the host name incorrectly.

Recommendation

Update the parse-url package to the latest compatible version. Followings are version details:

  • Affected version(s): < 8.1.0
  • Patched version(s): 8.1.0

References

Could your website be exposed too?

SmartScanner can check your website for parse-url parses http URLs incorrectly, making it vulnerable to host name spoofing and gives you actionable findings to investigate.

Start a free scan

Related Issues

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