All vulnerabilities

npm

CVE-2026-86472

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

Severity
Medium 4.8
Published
29 Sept 2026
Last changed
30 Sept 2026
Added to UpHeron
22 Oct 2026
Fixed in
2.4.7, 3.1.8, 4.1.5
Exploit chance
0.3% in the next 30 daysHigher than 16% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Case-sensitivity mistakes (CWE-178)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Also known as
GHSA-hrr3-gc8f-f4qj
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
fast-urinpm · osv:npm:fast-uri
  • Every version before 2.4.7
  • From 3.0.0 before 3.1.8
  • From 4.0.0 before 4.1.5

About fast-uri

Weekly downloads (npm)
227,816,128npm, 17 Nov 2026

References