Vulnerabilities/

fast-uri vulnerable to host confusion via percent-encoded authority delimiters

Severity:
High

Description

fast-uri v3.1.1 and earlier decodes percent-encoded authority delimiters (%40 as @, %3A as :) inside the host component and serializes them back as raw characters. This changes the URI structure, turning a hostname into userinfo plus a different host.

For example, http://trusted.com%40evil.com/ normalizes to http://[email protected]/, which reparses as host `evil.

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 13, 2026