fast-uri vulnerable to host confusion via literal backslash authority delimiterGHSA-v2hh-gcrm-f6hx
HIGHFix: fastify/fast-uri@0542a21GHSA-v2hh-gcrm-f6hx is a high-severity (CVSS 7.5) CWE-436 vulnerability in fast-uri. A fix is available for fast-uri — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-v2hh-gcrm-f6hx.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
fast-urinpmDescription
Impact
fast-uri v4.1.0 and earlier do not treat a literal backslash (U+005C) as an authority delimiter. Node's native WHATWG URL (used by fetch(), undici, and Node's http/https clients) normalizes \ to / for special schemes (http, https, ws, wss, ftp, file), so the two parsers extract different hosts from the same input string.
For example, http://evil.com\@allowed.com is treated by fast-uri as host allowed.com with userinfo evil.com\, while Node's WHATWG URL parser and fetch() see host evil.com with path /@allowed.com.
Applications that use fast-uri to enforce host-based policy (allowlists, denylists, loopback/SSRF filtering, redirect validation, outbound proxy routing) before passing the same URL into Node's URL or fetch() consumers see a policy/use desync and can be steered to an unintended destination, including cloud metadata endpoints, loopback, or internal hosts.
Patches
Upgrade to fast-uri v4.1.1, v3.1.4, or v2.4.3.
Workarounds
None. Upgrade to the patched version.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | fast-uri | ≥ 2.3.1&&< 2.4.3 | 2.4.3npm install fast-uri@2.4.3 |
| 📦npm | fast-uri | ≥ 3.0.0&&< 3.1.4 | 3.1.4npm install fast-uri@3.1.4 |
| 📦npm | fast-uri | ≥ 4.0.0&&< 4.1.1 | 4.1.1npm install fast-uri@4.1.1 |
Affected Products
fast-uriopenjsfDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for fast-uri, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update fast-uri to 2.4.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-v2hh-gcrm-f6hx is resolved across your whole dependency graph.
Workarounds
Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Important: This flaw in fast-uri allows for a security policy bypass due to inconsistent URL parsing between fast-uri and Node.js's native WHATWG URL parser. Applications within Red Hat Hardened Images that rely on fast-uri for host-based policy enforcement, such as allowlists or Server-Side Request Forgery (SSRF)…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.Source: Red Hat security advisory for GHSA-v2hh-gcrm-f6hx (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Hardened Images | grafana13-1-main-13.1.3-0.1.1.hum1 | RHSA-2026:54517 |
| Red Hat Hardened Images | grafana12-4-main-12.4.8-0.1.1.hum1 | RHSA-2026:54518 |
| Red Hat Migration Toolkit 1.8 | rhmtc/openshift-migration-ui-rhel8:1789546373 | RHSA-2026:68681 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-mod-arch-model-registry-rhel9:1791853432 | RHSA-2026:87410 |
| Red Hat OpenShift AI 3.3 | rhoai/odh-mod-arch-gen-ai-rhel9:1790128173 | RHSA-2026:73987 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-dashboard-rhel9:1791861020 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-mod-arch-gen-ai-rhel9:1793001896 | RHSA-2026:92510 |
| Red Hat OpenShift Container Platform 4.21 | openshift4/nmstate-console-plugin-rhel9:1789592806 | RHSA-2026:68547 |
Frequently Asked Questions
Is GHSA-v2hh-gcrm-f6hx in your dependencies?
Find it across npm, including transitive dependencies.