Vulnerabilities/

fast-uri vulnerable to host confusion via literal backslash authority delimiter

Severity:
High

Description

fast-uri v4.1.0 and earlier do not treat a literal backslash (U+005C) as an authority delimiter. Node’s native WHATWG URL (used by fetch(), undici, and Node’s http/https clients) normalizes \ to / for special schemes (http, https, ws, wss, ftp, file), so the two parsers extract different hosts from the same input string.

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 July 21, 2026