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
Related Issues
- url-parse incorrectly parses hostname / protocol due to unstripped leading control characters. - CVE-2022-0691
- Authorization bypass in url-parse - CVE-2022-0512
- Authorization Bypass Through User-Controlled Key in url-parse - CVE-2022-0686
- Open Redirect in url-parse - CVE-2018-3774
- Tags:
- npm
- url-parse
Anything's wrong? Let us know Last updated on February 20, 2026