Improper Validation of Specified Quantity in Input Affecting fast-uri package, versions >=2.4.2 <2.4.8>=3.1.3 <3.1.9>=4.0.1 <4.2.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (11th 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-21279304
  • published20 Oct 2026
  • disclosed20 Oct 2026
  • creditzekth

Introduced: 20 Oct 2026

NewCVE-2026-110180  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade fast-uri to version 2.4.8, 3.1.9, 4.2.3 or higher.

Overview

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

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via canonicalizeHost(), which passes the host directly to new URL('http://' + host) without verifying that the WHATWG parser consumed the entire input as a host. Because the RFC 3986 parser permits @ in the host component, and the WHATWG parser silently strips TAB, LF, and CR, an attacker can supply a URI whose authority is rewritten by the second parser with no error. This allows host spoofing across parse(), normalize(), equal(), and resolve() - for example, parse('http://a@b@evil.com/').host returns 'evil.com' and normalize('http://ev\til.com/p') returns 'http://evil.com/p'.

CVSS Base Scores

version 4.0
version 3.1