Vulnerabilities/

url-parse incorrectly parses hostname / protocol due to unstripped leading control characters.

Severity:
Medium

Description

Leading control characters in a URL are not stripped when passed into url-parse. This can cause input URLs to be mistakenly be interpreted as a relative URL without a hostname and protocol, while the WHATWG URL parser will trim control characters and treat it as an absolute URL.

Recommendation

Update the url-parse package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
url-parse
Anything's wrong? Let us know Last updated on September 11, 2023

This issue is available in SmartScanner Professional

See Pricing