CVE-2026-86472: Fast uri Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-hrr3-gc8f-f4qj
CVSS 4.8
CWE-178
Published
Advisory Summary

CVE-2026-86472 is a MODERATE (CVSS 4.8) remote code execution vulnerability (CWE-178: Improper Handling of Case Sensitivity) affecting Fast uri libraries in the npm ecosystem. The issue involves fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets. Remediation is available by upgrading affected packages to version 2.4.7, 3.1.8, 4.1.5.

CVE-2026-86472 at a Glance

CVE Identifier CVE-2026-86472
GHSA Identifier GHSA-hrr3-gc8f-f4qj
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-178: Improper Handling of Case Sensitivity
Affected Product Fast uri
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-86472

To remediate this vulnerability, upgrade all affected Fast uri dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

fast-uri fixed: 2.4.7
npm install fast-uri@2.4.7
fast-uri fixed: 3.1.8
npm install fast-uri@3.1.8
fast-uri fixed: 4.1.5
npm install fast-uri@4.1.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls fast-uri

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-86472, inspect your project dependencies using npm:

npm ls fast-uri

Analyze the terminal output to locate any version of Fast uri in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.7), your application is affected.

Note: The npm ls fast-uri command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-178: Improper Handling of Case Sensitivity, where the product does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results. In Fast uri, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-86472 Affected Fast uri Versions

3 component(s)
Fixed Versions:
2.4.73.1.84.1.5
Product / Package Ecosystem Affected Versions Fixed Version
fast-uri
npm
< 2.4.7
2.4.7
fast-uri
npm
≥ 3.0.0
< 3.1.8
3.1.8
fast-uri
npm
≥ 4.0.0
< 4.1.5
4.1.5

References

Frequently Asked Questions

What is CVE-2026-86472?
CVE-2026-86472 is a security vulnerability in Fast uri involving fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets under CWE-178: Improper Handling of Case Sensitivity.
Which Fast uri versions are affected?
Affected versions include releases prior to 2.4.7, 3.1.8, 4.1.5 across affected packages: fast-uri.
What version fixes CVE-2026-86472?
Upgrading to 2.4.7, 3.1.8, 4.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fast-uri affected?
Yes, fast-uri is affected in releases prior to 2.4.7, 3.1.8, 4.1.5. Upgrade your dependency to 2.4.7, 3.1.8, 4.1.5 or later.
What is the CVSS score of CVE-2026-86472?
CVE-2026-86472 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-86472?
CVE-2026-86472 is classified under CWE-178: Improper Handling of Case Sensitivity (The product does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results.).
How can I check npm dependencies for CVE-2026-86472?
Run the dependency tree command: 'npm ls fast-uri'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hrr3-gc8f-f4qj",
  "modified" : "2026-09-29T23:54:26Z",
  "published" : "2026-09-29T23:54:25Z",
  "aliases" : [ "CVE-2026-86472" ],
  "summary" : "fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets",
  "details" : "### Impact\n\n`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.\n\n### Patches\n\nUpgrade to `fast-uri` 4.1.5, 3.1.8, or 2.4.7.\n\n### Workarounds\n\nCompare 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "fast-uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "fast-uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "fast-uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fastify/fast-uri/security/advisories/GHSA-hrr3-gc8f-f4qj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-86472"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fastify/fast-uri/commit/5dabb86732aa2a7655e258719970e61e12b6b4d1"
  }, {
    "type" : "WEB",
    "url" : "https://cna.openjsf.org/security-advisories.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fastify/fast-uri"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fastify/fast-uri/releases/tag/v2.4.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fastify/fast-uri/releases/tag/v3.1.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fastify/fast-uri/releases/tag/v4.1.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-178" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-29T23:54:25Z",
    "nvd_published_at" : "2026-09-15T11:17:12Z"
  }
}