---
title: "GHSA-v2hh-gcrm-f6hx: fast-uri vulnerable to host confusion via literal backslash authority delimiter"
description: "High severity. fast-uri vulnerable to host confusion via literal backslash authority delimiter. Affects fast-uri; fixed in 4.1.1."
url: https://inlinr.com/advisories/GHSA-v2hh-gcrm-f6hx
lang: en
---

[Packages](https://inlinr.com/packages) / [fast-uri](https://inlinr.com/packages/fast-uri) / [Security](https://inlinr.com/packages/fast-uri/security)

High Vulnerability GHSA-v2hh-gcrm-f6hx CVE-2026-16221 Published 21 Jul 2026

# fast-uri vulnerable to host confusion via literal backslash authority delimiter

Your version 

Affected releases · [fast-uri](https://inlinr.com/packages/fast-uri)

- 4.x 4.0.0 – 4.1.0 Fixed in 4.1.1
- 3.x 3.0.0 – 3.1.3 Fixed in 3.1.4
- 2.x 2.3.1 – 2.4.2 Fixed in 2.4.3

On 4.x, the newest line:

```
npm install fast-uri@4.1.1
```

Every release on a timeline

4.x 

1. Affected

4.0.0 – 4.1.0  
3 releases
2. Fixed

4.1.1 – 4.2.3  
9 releases, latest

3.x 

1. Affected

3.0.0 – 3.1.3  
11 releases
2. Fixed

3.1.4 – 3.1.9  
6 releases

2.x 

1. Not affected

2.0.0 – 2.3.0  
4 releases
2. Affected

2.3.1 – 2.4.2  
4 releases
3. Fixed

2.4.3 – 2.4.8  
6 releases

47 stable releases of fast-uri, oldest to newest, one row per major.

## What happens

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.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: high
- **Availability**: none

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:H/​A:N

## References

- [Reference](https://github.com/fastify/fast-uri/security/advisories/GHSA-v2hh-gcrm-f6hx "https://github.com/fastify/fast-uri/security/advisories/GHSA-v2hh-gcrm-f6hx")  
github.com/fastify/fast-uri/security/advisories…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-16221 "https://nvd.nist.gov/vuln/detail/CVE-2026-16221")  
nvd.nist.gov/vuln/detail/CVE-2026-16221
- [Fix commit](https://github.com/fastify/fast-uri/commit/0542a216860fd70c062a4730e620576f62ded057 "https://github.com/fastify/fast-uri/commit/0542a216860fd70c062a4730e620576f62ded057")  
0542a21
- [Fix commit](https://github.com/fastify/fast-uri/commit/2d50fbabc80e4d0884fe0f6a98fe118ce6faa353 "https://github.com/fastify/fast-uri/commit/2d50fbabc80e4d0884fe0f6a98fe118ce6faa353")  
2d50fba
- [Fix commit](https://github.com/fastify/fast-uri/commit/9438266d6a7ded688c8bc7c4ba506da17f44a17b "https://github.com/fastify/fast-uri/commit/9438266d6a7ded688c8bc7c4ba506da17f44a17b")  
9438266
- [Reference](https://cna.openjsf.org/security-advisories.html "https://cna.openjsf.org/security-advisories.html")  
cna.openjsf.org/security-advisories.html
- [Package](https://github.com/fastify/fast-uri "https://github.com/fastify/fast-uri")  
github.com/fastify/fast-uri
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v2.4.3 "https://github.com/fastify/fast-uri/releases/tag/v2.4.3")  
github.com/fastify/fast-uri/releases/tag/v2.4.3
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v3.1.4 "https://github.com/fastify/fast-uri/releases/tag/v3.1.4")  
github.com/fastify/fast-uri/releases/tag/v3.1.4
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v4.1.1 "https://github.com/fastify/fast-uri/releases/tag/v4.1.1")  
github.com/fastify/fast-uri/releases/tag/v4.1.1

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
