CVE-2026-16221fast-uri vulnerable to host confusion via literal backslash authority delimiter
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-ajv | Fix pending | UBUNTU-CVE-2026-16221 | |
| Ubuntu 26.04 | node-ajv | Under investigation | UBUNTU-CVE-2026-16221 | |
| Ubuntu 24.04 | node-ajv | Under investigation | UBUNTU-CVE-2026-16221 | |
| Ubuntu 22.04 | node-ajv | Under investigation | UBUNTU-CVE-2026-16221 | |
| Ubuntu 20.04 | node-ajv | Fix pending | UBUNTU-CVE-2026-16221 | |
| Ubuntu 18.04 | node-ajv | Fix pending | UBUNTU-CVE-2026-16221 | |
| Debian 14 | node-ajv | Fixed | 8.20.0~ds+~cs7.1.2-1 | DEBIAN-CVE-2026-16221 |
| Debian 13 | node-ajv | Fix pending | DEBIAN-CVE-2026-16221 | |
| Red Hat Enterprise Linux 10 | linux-sgx | Under investigation | ||
| Red Hat Enterprise Linux 10 | sgx-common | Under investigation | ||
| Red Hat Enterprise Linux 10 | sgx-libs | Under investigation | ||
| Red Hat Enterprise Linux 10 | sgx-mpa | Under investigation | ||
| Red Hat Enterprise Linux 10 | sgx-pccs | Under investigation | ||
| Red Hat Enterprise Linux 10 | sgx-pccs-admin | Under investigation | ||
| Red Hat Enterprise Linux 10 | sgx-pckid-tool | Under investigation | ||
| Red Hat Enterprise Linux 10 | tdx-qgs | Under investigation | ||
| Red Hat Enterprise Linux 9 | linux-sgx | Under investigation | ||
| Red Hat Enterprise Linux 9 | sgx-common | Under investigation | ||
| Red Hat Enterprise Linux 9 | sgx-libs | Under investigation | ||
| Red Hat Enterprise Linux 9 | sgx-mpa | Under investigation | ||
| Red Hat Enterprise Linux 9 | sgx-pccs | Under investigation | ||
| Red Hat Enterprise Linux 9 | sgx-pccs-admin | Under investigation | ||
| Red Hat Enterprise Linux 9 | sgx-pckid-tool | Under investigation | ||
| Red Hat Enterprise Linux 9 | tdx-qgs | Under investigation | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-host | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | dotnet8.0 | Under investigation | ||
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Under investigation | ||
| npm library | fast-uri | Fixed | 3.1.4 | GHSA-v2hh-gcrm-f6hx |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- fast-uri: affected: 2.3.1 to before 2.4.3, 2.4.3 not affected, 3.0.0 to before 3.1.4, 3.1.4 not affected, 4.0.0 to before 4.1.1, 4.1.1 not affected; fixed in
2.4.3,3.1.4,4.1.1
References
- https://github.com/fastify/fast-uri/security/advisories/GHSA-v2hh-gcrm-f6hx
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.