Description
url-parse before 1.5.0 mishandles certain uses of backslash such as http:\/ and interprets the URI as a relative path.
Recommendation
Update the url-parse package to the latest compatible version. Followings are version details:
- Affected version(s): >= 0.1.0, < 1.5.0
- Patched version(s): 1.5.0
References
- GHSA-9m6j-fcg5-2442
- advisory.checkmarx.net
- lists.debian.org
- CVE-2021-27515
- CWE-23
- CAPEC-310
- OWASP 2021-A1
- OWASP 2021-A6
Related Issues
- Open redirect in url-parse (GHSA-hh27-ffr2-f2jc) - CVE-2021-3664
- Path Traversal in http-server-node - CVE-2021-23797
- Path Traversal in node-red-contrib-huemagic - CVE-2021-25864
- Open Redirect in url-parse - CVE-2018-3774
- Tags:
- npm
- url-parse
Anything's wrong? Let us know Last updated on February 03, 2026