Vulnerability library
Security checkSeptember 28, 2026

fast-uri vulnerable to host confusion via an unclosed bracket in the URI authority

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 accepts a host that contains an unbalanced or misplaced authority bracket ([ or ]) without reporting an error. A host that starts with [ but does not end with ], such as [@127.0.0.1, is neither validated as an IP literal nor canonicalized as a domain name, so parse() returns it as the host with error undefined, while Node’s URL (and http.get, axios, got, and other clients built on it) resolve the same string to 127.0.0.1.

Recommendation

Update the fast-uri package to the latest compatible version. Followings are version details:

  • Affected version(s): **= 4.1.3 = 3.1.6 = 2.4.5**
  • Patched version(s): **4.1.4 3.1.7 2.4.6**

References

Could your website be exposed too?

SmartScanner can check your website for fast-uri vulnerable to host confusion via an unclosed bracket in the URI authority and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 28, 2026