CVE-2026-86472
fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » fast-urivia npm fast-uri | < 2.4.7>= 3.0.0, < 3.1.8>= 4.0.0, < 4.1.5 | 2.4.7, 3.1.8, 4.1.5 |
| org.webjars.npm » fast-urivia npm fast-uri | < 2.4.7>= 3.0.0, < 3.1.8>= 4.0.0, < 4.1.5 | 2.4.7, 3.1.8, 4.1.5 |
Blast radius
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-86472 | nvd.nist.gov |
| Package | fastify/fast-uri | github.com |
| Web | fastify/fast-uri advisory GHSA-hrr3-gc8f-f4qj | github.com |
| Web | fastify/fast-uri commit 5dabb86 | github.com |
| Web | security-advisories.html | cna.openjsf.org |
| Web | fastify/fast-uri release v2.4.7 | github.com |
| Web | fastify/fast-uri release v3.1.8 | github.com |
| Web | fastify/fast-uri release v4.1.5 | github.com |
