Vulnerability library
Security checkFebruary 20, 2026

url-parse Incorrectly parses URLs that include an '@

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

Medium severitynpmurl-parse

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A specially crafted URL with an ‘@’ sign but empty user info and no hostname, when parsed with url-parse, url-parse will return the incorrect href.

Recommendation

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

  • Affected version(s): >= 1.0.0, < 1.5.7
  • Patched version(s): 1.5.7

References

Could your website be exposed too?

SmartScanner can check your website for url-parse Incorrectly parses URLs that include an '@ and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 20, 2026