CVE-2026-86472
Published:September 15, 2026
Updated:September 15, 2026
fast-uri is a dependency-free RFC 3986 URI parser for Node.js, used by Fastify and ajv. In versions before 2.4.7, from 3.0.0 through 3.1.7, and from 4.0.0 through 4.1.4, fast-uri folds the host to lowercase before it percent-decodes the host, so a percent-encoded uppercase octet such as %41 decodes to a literal A that is never folded. For a scheme-relative reference such as //host there is no scheme, so the host canonicalization that would normally repair this does not run, and parse, normalize, and equal then disagree on the same host. An application that makes a case-sensitive host decision on fast-uri output, for example a host allowlist or denylist that compares the parsed host or uses equal, can be steered past the check with a percent-encoded uppercase octet, and because hostnames are case-insensitive in DNS and HTTP the evading spelling still reaches the host the check meant to gate. The issue is fixed in fast-uri 2.4.7, 3.1.8, and 4.1.5, and users should upgrade to one of those versions or later. As a workaround, compare hosts case-insensitively by lowercasing the parsed host before any allowlist or denylist decision.
Affected Packages
https://github.com/fastify/fast-uri.git (GITHUB):
Affected version(s) >=v3.1.6 <v3.1.8Fix Suggestion:
Update to version v3.1.8https://github.com/fastify/fast-uri.git (GITHUB):
Affected version(s) >=v4.1.3 <v4.1.5Fix Suggestion:
Update to version v4.1.5https://github.com/fastify/fast-uri.git (GITHUB):
Affected version(s) >=v2.4.5 <v2.4.7Fix Suggestion:
Update to version v2.4.7fast-uri (NPM):
Affected version(s) >=3.1.6 <3.1.8Fix Suggestion:
Update to version 3.1.8fast-uri (NPM):
Affected version(s) >=4.1.3 <4.1.5Fix Suggestion:
Update to version 4.1.5fast-uri (NPM):
Affected version(s) >=0.0.1 <2.4.7Fix Suggestion:
Update to version 2.4.7Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.8
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Handling of Case Sensitivity