---
title: "GHSA-q3j6-qgpj-74h6: fast-uri vulnerable to path traversal via percent-encoded dot segments"
description: "High severity. fast-uri vulnerable to path traversal via percent-encoded dot segments. Affects fast-uri; fixed in 3.1.1."
url: https://inlinr.com/advisories/GHSA-q3j6-qgpj-74h6
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-q3j6-qgpj-74h6 CVE-2026-6321 Published 8 May 2026

# fast-uri vulnerable to path traversal via percent-encoded dot segments

Your version 

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

- 3.x 3.0.0 – 3.1.0 Fixed in 3.1.1
- 2.x 2.0.0 – 2.4.0 Fixed in 2.4.1
- 1.x and older 0.0.1 – 1.0.1 No fix, no longer updated

On 3.x, the newest line:

```
npm install fast-uri@3.1.1
```

Every release on a timeline

4.x 

1. Not affected

4.0.0 – 4.2.3  
12 releases, latest

3.x 

1. Affected

3.0.0 – 3.1.0  
8 releases
2. Fixed

3.1.1 – 3.1.9  
9 releases

2.x 

1. Affected

2.0.0 – 2.4.0  
6 releases
2. Fixed

2.4.1 – 2.4.8  
8 releases

1.x 

1. Affected

1.0.0 – 1.0.1  
2 releases

0.x 

1. Affected

0.0.1 – 0.0.2  
2 releases

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

## What happens

Impact

`fast-uri` v3.1.0 and earlier decodes percent-encoded path separators (`%2F`) and dot segments (`%2E`) before applying dot-segment removal in `normalize()` and `equal()`. This makes encoded path data behave like real `/` and `..`, so distinct URIs collapse onto the same normalized path.

For example, `http://example.com/public/%2e%2e/admin` normalizes to `http://example.com/admin`, and `equal()` considers them the same URI.

Applications that normalize or compare attacker-controlled URLs to enforce path-based policy can be bypassed. A path that looks confined under an allowed prefix can normalize to a different location.

Patches

Upgrade to `fast-uri` \>= 3.1.1, or if you are in the v2.x release line, v2.4.1

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-q3j6-qgpj-74h6 "https://github.com/fastify/fast-uri/security/advisories/GHSA-q3j6-qgpj-74h6")  
github.com/fastify/fast-uri/security/advisories…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-6321 "https://nvd.nist.gov/vuln/detail/CVE-2026-6321")  
nvd.nist.gov/vuln/detail/CVE-2026-6321
- [Reference](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6321.json "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6321.json")  
security.access.redhat.com/data/csaf/v2/vex/202…
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v3.1.1 "https://github.com/fastify/fast-uri/releases/tag/v3.1.1")  
github.com/fastify/fast-uri/releases/tag/v3.1.1
- [Reference](https://github.com/fastify/fast-uri/releases/tag/v2.4.1 "https://github.com/fastify/fast-uri/releases/tag/v2.4.1")  
github.com/fastify/fast-uri/releases/tag/v2.4.1
- [Package](https://github.com/fastify/fast-uri "https://github.com/fastify/fast-uri")  
github.com/fastify/fast-uri
- [Reference](https://cna.openjsf.org/security-advisories.html "https://cna.openjsf.org/security-advisories.html")  
cna.openjsf.org/security-advisories.html
- [Reference](https://bugzilla.redhat.com/show%5Fbug.cgi?id=2466582 "https://bugzilla.redhat.com/show_bug.cgi?id=2466582")  
bugzilla.redhat.com/show\_bug.cgi
- [Reference](https://access.redhat.com/security/cve/CVE-2026-6321 "https://access.redhat.com/security/cve/CVE-2026-6321")  
access.redhat.com/security/cve/CVE-2026-6321
- [Reference](https://access.redhat.com/errata/RHSA-2026:57013 "https://access.redhat.com/errata/RHSA-2026:57013")  
access.redhat.com/errata/RHSA-2026:57013
- [Reference](https://access.redhat.com/errata/RHSA-2026:56928 "https://access.redhat.com/errata/RHSA-2026:56928")  
access.redhat.com/errata/RHSA-2026:56928
- [Reference](https://access.redhat.com/errata/RHSA-2026:56431 "https://access.redhat.com/errata/RHSA-2026:56431")  
access.redhat.com/errata/RHSA-2026:56431
- [Reference](https://access.redhat.com/errata/RHSA-2026:56366 "https://access.redhat.com/errata/RHSA-2026:56366")  
access.redhat.com/errata/RHSA-2026:56366
- [Reference](https://access.redhat.com/errata/RHSA-2026:42079 "https://access.redhat.com/errata/RHSA-2026:42079")  
access.redhat.com/errata/RHSA-2026:42079
- [Reference](https://access.redhat.com/errata/RHSA-2026:42078 "https://access.redhat.com/errata/RHSA-2026:42078")  
access.redhat.com/errata/RHSA-2026:42078
- [Reference](https://access.redhat.com/errata/RHSA-2026:37385 "https://access.redhat.com/errata/RHSA-2026:37385")  
access.redhat.com/errata/RHSA-2026:37385
- [Reference](https://access.redhat.com/errata/RHSA-2026:34342 "https://access.redhat.com/errata/RHSA-2026:34342")  
access.redhat.com/errata/RHSA-2026:34342
- [Reference](https://access.redhat.com/errata/RHSA-2026:26420 "https://access.redhat.com/errata/RHSA-2026:26420")  
access.redhat.com/errata/RHSA-2026:26420
- [Reference](https://access.redhat.com/errata/RHSA-2026:26416 "https://access.redhat.com/errata/RHSA-2026:26416")  
access.redhat.com/errata/RHSA-2026:26416
- [Reference](https://access.redhat.com/errata/RHSA-2026:26234 "https://access.redhat.com/errata/RHSA-2026:26234")  
access.redhat.com/errata/RHSA-2026:26234

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.
