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.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 Through User-Controlled Key in url-parse - CVE-2022-0686
- Authorization bypass in url-parse - CVE-2022-0512
- Follow Redirects improperly handles URLs in the url.parse() function - CVE-2023-26159
- Tags:
- npm
- url-parse
Anything's wrong? Let us know Last updated on December 20, 2025