CVE-2026-86472

Source
https://cve.org/CVERecord?id=CVE-2026-86472
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-86472.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-86472
Aliases
  • GHSA-hrr3-gc8f-f4qj
Published
2026-09-15T10:29:50Z
Modified
2026-09-16T03:47:48Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets
Details

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.

Database specific
{
    "cna_assigner": "openjs",
    "cwe_ids": [
        "CWE-178"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86472.json"
}
References

Affected packages

Git / github.com/fastify/fast-uri

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fast-uri
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.4.7"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "3.1.8"
        },
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.1.5"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v0.*
v0.0.1
v0.0.2
v1.*
v1.0.0
v1.0.1
v2.*
v2.0.0
v2.1.0
v2.2.0
v2.3.0
v2.3.1
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.4.4
v2.4.5
v2.4.6
v3.*
v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.0.5
v3.0.6
v3.1.0
v3.1.1
v3.1.2
v3.1.3
v3.1.4
v3.1.5
v3.1.6
v3.1.7
v4.*
v4.0.0
v4.0.1
v4.1.0
v4.1.1
v4.1.2
v4.1.3
v4.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-86472.json"