fast-uri is vulnerable to Server-Side Request Forgery (SSRF)
75
High Risk
The library percent-decodes the hostname twice, once during parsing and again during authority recomposition. Nested percent-encoded hostnames therefore collapse to a different host such as localhost only after normalization runs. Applications that enforce allowlists or SSRF protections against the pre-normalization URI can be redirected to internal addresses or cloud metadata endpoints. The fix removes the redundant second decode of the host component in normalize() and resolve().
You are affected if you are using a version that falls within the vulnerable range and your application normalizes or resolves untrusted or externally influenced URIs before performing allowlist or SSRF checks.
fast-uri is vulnerable to Server-Side Request Forgery (SSRF) in versions 2.4.1 - 2.4.4, 3.1.2 - 3.1.5 and 4.0.0 - 4.1.2.
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