Description
Impact: fast-uri versions from 2.3.1 through 4.1.0 (including the 3.x line up to 3.1.3 and the 2.x line up to 2.4.2) do not treat a literal backslash character (U+005C) as an authority delimiter. Node's native WHATWG URL parser, used by fetch, undici, and Node's http and https clients, normalizes the backslash to a forward slash for special schemes such as http, https, ws, wss, ftp, and file. As a result, the two parsers extract different hosts from the same input string. Applications that use fast-uri to enforce host-based policy such as allowlists, denylists, loopback or SSRF filtering, redirect validation, or outbound proxy routing before passing the same URL into Node's URL or fetch consumers can be steered to an unintended destination, including cloud metadata endpoints, loopback, or internal hosts.

Patches: upgrade to fast-uri 4.1.1, 3.1.4, or 2.4.3.

Workarounds: none.
Published: 2026-07-19
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Fast-uri fails to treat the character \\u005C (backslash) as an authority delimiter in URLs. The standard Node.JS WHATWG URL parser normalizes this character to a forward slash for special schemes such as http, https, ws, wss, ftp, and file, while fast-uri retains it as part of the host. When an application uses fast-uri to enforce host‑based policies—like allowlists, denylists, loopback checks, SSRF filtering, redirect validation, or outbound proxy routing—and then forwards the same URL to Node's native URL parser, fetch, undici, or HTTP clients, the two parsers resolve different hostnames. This host confusion can steer requests to unintended internal hosts or cloud metadata endpoints, enabling attackers to bypass security controls. The weakness is classified as CWE‑436.

Affected Systems

The vulnerability affects fast-uri version 2.x up to 2.4.2, 3.x up to 3.1.3, and 4.x up to 4.1.0. The package can be identified as fast-uri:fast-uri in vendor listings. Patches are available in fast-uri 4.1.1, 3.1.4, and 2.4.3.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity, while the EPSS score of less than 1% suggests that exploitation is unlikely but still possible. The vulnerability is not listed in the CISA KEV catalog. The attack vector is likely an application or service that authorizes URLs using fast-uri for policy enforcement and then passes the same URL to standard Node.js URL consumers. Attackers could exploit this by crafting a URL containing a literal backslash to redirect traffic to a target host that bypasses the intended policy.

Generated by OpenCVE AI on July 30, 2026 at 21:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade fast-uri to version 4.1.1, 3.1.4, or 2.4.3, which corrects backslash handling.
  • Add explicit host validation after fast-uri parsing and before any request is dispatched, ensuring the host matches the allowed list and that downstream fetch or HTTP clients use the same host.
  • Restrict outbound traffic from public-facing services to internal metadata and loopback addresses, such as blocking 169.254.169.254 and other internal IP ranges.

Generated by OpenCVE AI on July 30, 2026 at 21:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-v2hh-gcrm-f6hx fast-uri vulnerable to host confusion via literal backslash authority delimiter
History

Tue, 21 Jul 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Fast-uri
Fast-uri fast-uri
Vendors & Products Fast-uri
Fast-uri fast-uri

Mon, 20 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 19 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Description Impact: fast-uri versions from 2.3.1 through 4.1.0 (including the 3.x line up to 3.1.3 and the 2.x line up to 2.4.2) do not treat a literal backslash character (U+005C) as an authority delimiter. Node's native WHATWG URL parser, used by fetch, undici, and Node's http and https clients, normalizes the backslash to a forward slash for special schemes such as http, https, ws, wss, ftp, and file. As a result, the two parsers extract different hosts from the same input string. Applications that use fast-uri to enforce host-based policy such as allowlists, denylists, loopback or SSRF filtering, redirect validation, or outbound proxy routing before passing the same URL into Node's URL or fetch consumers can be steered to an unintended destination, including cloud metadata endpoints, loopback, or internal hosts. Patches: upgrade to fast-uri 4.1.1, 3.1.4, or 2.4.3. Workarounds: none.
Title fast-uri vulnerable to host confusion via literal backslash authority delimiter
Weaknesses CWE-436
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Fast-uri Fast-uri
cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-07-20T13:53:42.583Z

Reserved: 2026-07-18T11:37:36.004Z

Link: CVE-2026-16221

cve-icon Vulnrichment

Updated: 2026-07-20T13:53:37.076Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T22:00:06Z

Weaknesses