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
- 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.
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.
Affected software
| Software | Affected versions |
|---|---|
fast-urinpm · osv:npm:fast-uri |
|
About fast-uri
- Weekly downloads (npm)
- 227,816,128npm, 17 Nov 2026
Vulnerabilities in fast-uri
- In our list
- 9
- Published in the last 12 months
- 9
- Critical, last 12 months
- 0
- High, last 12 months
- 8
- Known exploited
- 0
- CVE-2026-84292fast-uri vulnerable to authority injection via an unvalidated port in serializeHigh 7.5 28 Sept 2026
- CVE-2026-75975fast-uri vulnerable to server-side request forgery via malformed IPv6 normalizationHigh 7.5 2 Sept 2026
- CVE-2026-76172fast-uri vulnerable to host confusion via percent-encoded scheme normalizationHigh 7.5 2 Sept 2026
- CVE-2026-18446fast-uri vulnerable to host confusion via backslash authority introducerHigh 7.5 3 Aug 2026
- CVE-2026-16221fast-uri vulnerable to host confusion via literal backslash authority delimiterHigh 7.5 21 Jul 2026
- CVE-2026-13676fast-uri vulnerable to host confusion via failed IDN canonicalizationHigh 7.5 21 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-86472
- GitHub Advisory Database https://github.com/advisories/GHSA-hrr3-gc8f-f4qj