Vulnerability library
Security checkJuly 21, 2026

fast-uri vulnerable to host confusion via literal backslash authority delimiter

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 v4.1.0 and earlier do not treat a literal backslash (U+005C) as an authority delimiter. Node’s native WHATWG URL (used by fetch(), undici, and Node’s http/https clients) normalizes \ to / for special schemes (http, https, ws, wss, ftp, file), so the two parsers extract different hosts from the same input string.

Recommendation

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

  • Affected version(s): **>= 4.0.0, <= 4.1.0 >= 3.0.0, <= 3.1.3 >= 2.3.1, <= 2.4.2**
  • Patched version(s): **4.1.1 3.1.4 2.4.3**

References

Could your website be exposed too?

SmartScanner can check your website for fast-uri vulnerable to host confusion via literal backslash authority delimiter and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 21, 2026