parse-url parses http URLs incorrectly, making it vulnerable to host name spoofing
- Severity:
- Medium
Description
parse-url prior to 8.1.0 is vulnerable to Misinterpretation of Input. parse-url parses certain http or https URLs incorrectly, identifying the URL’s protocol as ssh. It may also parse the host name incorrectly.
Recommendation
Update the parse-url package to the latest compatible version. Followings are version details:
- Affected version(s): < 8.1.0
- Patched version(s): 8.1.0
References
Related Issues
- url-parse Incorrectly parses URLs that include an '@ - CVE-2022-0639
- url-parse incorrectly parses hostname / protocol due to unstripped leading control characters. - CVE-2022-0691
- Cross site scripting in parse-url - parse-url - CVE-2022-2218
- Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url - CVE-2022-2900
You might also like:
- Tags:
- npm
- parse-url
Anything's wrong? Let us know Last updated on January 28, 2023


