All vulnerabilities
CVE-2026-86472GHSA-hrr3-gc8f-f4qj

fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets

fast-uri fast-urinpmLibraries & packages
CVSS
4.8Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.25%Chance of exploitation activity in the next 30 days, higher than 15% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in2.4.7Also 3.1.8, 4.1.5GitHub
Published15 Sep 2026Updated 30 Sep 2026CVE List

What fixes it

  • 2.4.7fast-uri, npmGitHubnpm install fast-uri@2.4.7
  • 3.1.8fast-uri, npmGitHubnpm install fast-uri@3.1.8
  • 4.1.5fast-uri, npmGitHubnpm install fast-uri@4.1.5
  • 2.4.7fast-uriCVE List
  • 3.1.8fast-uriCVE List
  • 4.1.5fast-uriCVE List

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Impact

fast-uri folds the host to lowercase before it percent-decodes the host, so a percent-encoded uppercase unreserved octet such as %41 decodes to a literal A that is never folded. For a scheme-relative reference (//host) there is no scheme, so the host canonicalization that repairs this on a scheme-bearing URL does not run. As a result parse, normalize, and equal disagree on the same host: parse("//%41.com").host returns "A.com" while parse("//a.com").host and parse("//A.com").host return "a.com", and equal("//%41.com", "//a.com") is false even though equal("//A.com", "//a.com") is true. An application that makes a case-sensitive host decision on fast-uri output for a scheme-relative reference, for example a host allowlist or denylist that compares parse(url).host or uses fast-uri.equal, can be steered past the check with a percent-encoded uppercase octet. Because a hostname is case-insensitive in DNS and HTTP routing, the evading spelling reaches the same host the check meant to gate, so the effect is check evasion rather than reaching a different registrable host.

Patches

Upgrade to fast-uri 4.1.5, 3.1.8, or 2.4.7.

Workarounds

Compare hosts case-insensitively (lowercase the parsed host before any allowlist or denylist decision), or avoid making case-sensitive host decisions on scheme-relative input until upgrading.

Text from GitHub Advisory Database

Affected versions 12

  • fast-uri, npm< 2.4.7GitHub
  • fast-uri, npm>= 3.0.0, < 3.1.8GitHub
  • fast-uri, npm>= 4.0.0, < 4.1.5GitHub
  • fast-uriaffected: all versions before 2.4.7CVE List
  • fast-uriunaffected: 2.4.7CVE List
  • fast-uriaffected: 3.0.0 before 3.1.8CVE List
  • fast-uriunaffected: 3.1.8CVE List
  • fast-uriaffected: 4.0.0 before 4.1.5CVE List
  • fast-uriunaffected: 4.1.5CVE List
  • fast-uri, npmfrom first release, fixed in 2.4.7OSV
  • fast-uri, npmfrom 3.0.0, fixed in 3.1.8OSV
  • fast-uri, npmfrom 4.0.0, fixed in 4.1.5OSV

References 8