Encoding Error Affecting fast-uri package, versions <2.4.8>=3.0.0 <3.1.9>=4.0.0 <4.2.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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-21279303
  • published20 Oct 2026
  • disclosed20 Oct 2026
  • creditzekth

Introduced: 20 Oct 2026

NewCVE-2026-110306  (opens in a new tab)
CWE-172  (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 Encoding Error via the decodeValidScheme function, which decoded percent-encoded URI schemes using the deprecated unescape() global (including the JavaScript-only %uXXXX form) before validating them. An attacker can supply a percent-encoded scheme such as %6Aavascript:alert(1) or %u006Aavascript:alert(1), causing normalize() to return a live javascript: URI, resolve() to produce a javascript: URL, and equal() to treat the encoded form as equivalent to the decoded scheme. This enables scheme-confusion attacks, most notably cross-site scripting when the resulting URI is used in a browser navigation or href context.

CVSS Base Scores

version 4.0
version 3.1