Vulnerabilities/

fast-uri vulnerable to host confusion via failed IDN canonicalization

Severity:
High

Description

fast-uri versions >= 2.3.1, <= 4.0.0 fail to canonicalize Unicode/IDN hostnames for HTTP-family URLs. The IDN conversion path calls URL.domainToASCII(...) on the global WHATWG URL constructor, where that helper does not exist. The resulting TypeError is silently routed into parsed.error, but parse(), normalize(), and equal() all return with the host left in its original Unicode form.

Recommendation

Update the fast-uri package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
fast-uri
Anything's wrong? Let us know Last updated on August 14, 2026