fast-uri is vulnerable to Server-Side Request Forgery (SSRF)
75
High Risk
fast-uri only treats a literal // as an authority introducer, so references that use \\, /\, \/, or whitespace-split variants after an optional scheme are parsed with no authority and the sequence folds into the path. Node's WHATWG URL (used by fetch(), undici, and Node's HTTP clients) treats \ as interchangeable with / for special schemes, so the same input yields a different host. Applications that enforce host allowlists, SSRF filters, or redirect checks with fast-uri before handing the URL to Node can be steered to an unintended destination. The fix detects these malformed authority introducers, marks the URI malformed, and makes resolve() throw instead of continuing with an unsafe resolution.
You are affected if you are using a version that falls within the vulnerable range and you use fast-uri for host-based policy checks before passing the same URL to Node's URL or fetch() consumers.
fast-uri is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 2.4.3, 3.0.0 - 3.1.4 and 4.0.0 - 4.1.1.
Upgrade the fast-uri library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant