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): < 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
- url-parse incorrectly parses hostname / protocol due to unstripped leading control characters. - CVE-2022-0691
- Improper Validation and Sanitization in url-parse - CVE-2020-8124
- Path Traversal in http-server-node - CVE-2021-23797
- Tags:
- npm
- url-parse
Anything's wrong? Let us know Last updated on February 23, 2023