GHSA-v39h-62p7-jpjc
fast-uri vulnerable to host confusion via percent-encoded authority delimiters
Quick fix
GHSA-v39h-62p7-jpjc — fast-uri: upgrade to the fixed version with the command below.
npm install fast-uri@3.1.2 Details
### Impact
`fast-uri` v3.1.1 and earlier decodes percent-encoded authority delimiters (`%40` as `@`, `%3A` as `:`) inside the host component and serializes them back as raw characters. This changes the URI structure, turning a hostname into userinfo plus a different host.
For example, `http://trusted.com%40evil.com/` normalizes to `http://trusted.com@evil.com/`, which reparses as host `evil.com` with userinfo `trusted.com`.
Applications that normalize untrusted URLs before host allowlist checks, redirect validation, or outbound request routing can be steered to a different authority than the original URL appeared to contain.
### Patches
Upgrade to `fast-uri` >= 3.1.2, or if you are in the v2.x release line, v2.4.1
### Workarounds
None. Upgrade to the patched version.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/fastify/fast-uri/security/advisories/GHSA-v39h-62p7-jpjc [WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-6322 [ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:25271 [WEB]
- https://access.redhat.com/errata/RHSA-2026:37385 [WEB]
- https://access.redhat.com/errata/RHSA-2026:37628 [WEB]
- https://access.redhat.com/errata/RHSA-2026:40118 [WEB]
- https://access.redhat.com/errata/RHSA-2026:40945 [WEB]
- https://access.redhat.com/errata/RHSA-2026:41066 [WEB]
- https://access.redhat.com/errata/RHSA-2026:41928 [WEB]
- https://access.redhat.com/errata/RHSA-2026:41951 [WEB]
- https://access.redhat.com/errata/RHSA-2026:42078 [WEB]
- https://access.redhat.com/errata/RHSA-2026:42142 [WEB]
- https://access.redhat.com/errata/RHSA-2026:43038 [WEB]
- https://access.redhat.com/security/cve/CVE-2026-6322 [WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2466684 [WEB]
- https://cna.openjsf.org/security-advisories.html [WEB]
- https://github.com/fastify/fast-uri [PACKAGE]
- https://github.com/fastify/fast-uri/releases/tag/v2.4.1 [WEB]
- https://github.com/fastify/fast-uri/releases/tag/v3.1.2 [WEB]
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6322.json [WEB]
- https://access.redhat.com/errata/RHSA-2026:25273 [WEB]
- https://access.redhat.com/errata/RHSA-2026:26225 [WEB]
- https://access.redhat.com/errata/RHSA-2026:26234 [WEB]
- https://access.redhat.com/errata/RHSA-2026:28571 [WEB]
- https://access.redhat.com/errata/RHSA-2026:29197 [WEB]
- https://access.redhat.com/errata/RHSA-2026:29795 [WEB]
- https://access.redhat.com/errata/RHSA-2026:29796 [WEB]
- https://access.redhat.com/errata/RHSA-2026:29800 [WEB]
- https://access.redhat.com/errata/RHSA-2026:29834 [WEB]
- https://access.redhat.com/errata/RHSA-2026:30076 [WEB]
- https://access.redhat.com/errata/RHSA-2026:33683 [WEB]
- https://access.redhat.com/errata/RHSA-2026:34160 [WEB]
- https://access.redhat.com/errata/RHSA-2026:34342 [WEB]
- https://access.redhat.com/errata/RHSA-2026:34374 [WEB]
- https://access.redhat.com/errata/RHSA-2026:34766 [WEB]
- https://access.redhat.com/errata/RHSA-2026:34770 [WEB]
- https://access.redhat.com/errata/RHSA-2026:36651 [WEB]
- https://access.redhat.com/errata/RHSA-2026:36754 [WEB]
- https://access.redhat.com/errata/RHSA-2026:37186 [WEB]