Vulnerability library
Security checkAugust 13, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmfast-uri

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): **<= 2.4.0 >= 3.0.0, <= 3.1.1**
  • Patched version(s): **2.4.1 3.1.2**

References

Could your website be exposed too?

SmartScanner can check your website for fast-uri vulnerable to host confusion via percent-encoded authority delimiters and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 13, 2026