---
title: "GHSA-wjr9-j795-jxcr: fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization"
description: "Moderate severity. fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization. Affects fast-uri; fixed in 4.2.3."
url: https://inlinr.com/advisories/GHSA-wjr9-j795-jxcr
lang: en
---

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

Moderate Vulnerability GHSA-wjr9-j795-jxcr CVE-2026-110180 Published 23 Oct 2026

# fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization

Your version 

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

- 4.x 4.0.1 – 4.2.2 Fixed in 4.2.3
- 3.x 3.1.3 – 3.1.8 Fixed in 3.1.9
- 2.x 2.4.2 – 2.4.7 Fixed in 2.4.8

On 4.x, the newest line:

```
npm install fast-uri@4.2.3
```

Every release on a timeline

4.x 

1. Not affected

4.0.0  
1 release
2. Affected

4.0.1 – 4.2.2  
10 releases
3. Fixed

4.2.3  
1 release, latest

3.x 

1. Not affected

3.0.0 – 3.1.2  
10 releases
2. Affected

3.1.3 – 3.1.8  
6 releases
3. Fixed

3.1.9  
1 release

2.x 

1. Not affected

2.0.0 – 2.4.1  
7 releases
2. Affected

2.4.2 – 2.4.7  
6 releases
3. Fixed

2.4.8  
1 release

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

## What happens

Impact

`fast-uri` versions `>= 2.4.2, <= 2.4.7`, `>= 3.1.3, <= 3.1.8`, and `>= 4.0.1, <= 4.2.2` can silently rewrite the host of an HTTP-family URL (`http`, `https`, `ws`, `wss`, or any scheme with `domainHost: true`). For those schemes `canonicalizeHost()` passes the parsed host to the WHATWG `URL` parser and adopts its `.hostname` without checking that the parser read the whole input as a host. RFC 3986 permits `@` inside the host group and the WHATWG parser strips TAB, LF, and CR, so the authority `fast-uri` reports is rewritten by that second parser with no `error` set: data before an `@` is dropped and whitespace is removed.

For example, `fast-uri` parses `http://a@b@evil.example/` to host `evil.example` (dropping the `b` segment), and a host containing a raw TAB, CR, or LF has those characters stripped. `equal()` then treats a whitespace-smuggled host as the same as the clean one, and `resolve()` rewrites the authority the same way.

Applications that use `fast-uri` to enforce host-based policy (denylists, loopback filtering, redirect validation, outbound proxy routing) on one representation, such as the raw input, see a policy/use desync: the canonical host `fast-uri` returns differs from what was checked, and traffic can be steered to an unintended destination.

Patches

Upgrade to `fast-uri` `2.4.8`, `3.1.9`, or `4.2.3`.

Workarounds

Reject URIs whose authority contains more than one `@`, or contains TAB, CR, or LF, before calling `fast-uri`. Alternatively, treat any non-empty `parse(x).error` as fatal, and compare hosts only from the same `parse()` result.

## How it is exploited

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

- **Confidentiality**: low
- **Integrity**: low
- **Availability**: none

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

## References

- [Reference](https://github.com/fastify/fast-uri/security/advisories/GHSA-wjr9-j795-jxcr "https://github.com/fastify/fast-uri/security/advisories/GHSA-wjr9-j795-jxcr")  
github.com/fastify/fast-uri/security/advisories…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-110180 "https://nvd.nist.gov/vuln/detail/CVE-2026-110180")  
nvd.nist.gov/vuln/detail/CVE-2026-110180
- [Fix commit](https://github.com/fastify/fast-uri/commit/58c183d0b168ad87f98773266444ce1f6375803a "https://github.com/fastify/fast-uri/commit/58c183d0b168ad87f98773266444ce1f6375803a")  
58c183d
- [Fix commit](https://github.com/fastify/fast-uri/commit/ddfc6a51122dfce0365655f04479fc3adb7f6b3c "https://github.com/fastify/fast-uri/commit/ddfc6a51122dfce0365655f04479fc3adb7f6b3c")  
ddfc6a5
- [Fix commit](https://github.com/fastify/fast-uri/commit/f6d46dfeab025d0c440485f4ae29fa4f14707646 "https://github.com/fastify/fast-uri/commit/f6d46dfeab025d0c440485f4ae29fa4f14707646")  
f6d46df
- [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.8 "https://github.com/fastify/fast-uri/releases/tag/v2.4.8")  
github.com/fastify/fast-uri/releases/tag/v2.4.8
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v3.1.9 "https://github.com/fastify/fast-uri/releases/tag/v3.1.9")  
github.com/fastify/fast-uri/releases/tag/v3.1.9
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v4.2.3 "https://github.com/fastify/fast-uri/releases/tag/v4.2.3")  
github.com/fastify/fast-uri/releases/tag/v4.2.3

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.
