Host Confusion Affecting fast-uri package, versions >=2.4.5 <2.4.6>=3.1.6 <3.1.7>=4.1.3 <4.1.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTURI-19502854
  • published3 Sept 2026
  • disclosed2 Sept 2026
  • creditYashvant Mahadev Hange

Introduced: 2 Sep 2026

NewCVE-2026-84394  (opens in a new tab)
CWE-436  (opens in a new tab)

How to fix?

Upgrade fast-uri to version 2.4.6, 3.1.7, 4.1.4 or higher.

Overview

fast-uri is a Dependency-free RFC 3986 URI toolbox

Affected versions of this package are vulnerable to Host Confusion in the parse() function, which returns a host that begins with [ but has no closing ], such as [@127.0.0.1, without validating it as an IPv6 literal or canonicalizing it as a domain name, leaving error undefined. An attacker can cause an application to make security decisions on a different host than HTTP clients resolve, defeating SSRF denylists, redirect allowlists, or proxy routing, by supplying a URL whose authority contains an unbalanced bracket. This affects applications that use the host from parse(), normalize(), equal(), or resolve() for access decisions while forwarding the original URL to an HTTP client.

CVSS Base Scores

version 4.0
version 3.1