{"id":"CVE-2026-16221","aliases":["GHSA-v2hh-gcrm-f6hx"],"url":"https://o3.security/vulnerability/CVE-2026-16221","summary":"fast-uri vulnerable to host confusion via literal backslash authority delimiter","details":"### Impact\n\n`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.\n\nFor 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`.\n\nApplications 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.\n\n### Patches\n\nUpgrade to `fast-uri` v4.1.1, v3.1.4, or v2.4.3.\n\n### Workarounds\n\nNone. Upgrade to the patched version.","published":"2026-07-19T14:08:32.993Z","modified":"2026-10-28T02:30:45.288691315Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":{"score":0.00436,"percentile":0.38619,"asOf":"2026-11-21"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"fast-uri","fixedVersion":"2.4.3"},{"ecosystem":"npm","name":"fast-uri","fixedVersion":"3.1.4"},{"ecosystem":"npm","name":"fast-uri","fixedVersion":"4.1.1"}],"fix":{"url":"https://github.com/fastify/fast-uri/commit/0542a216860fd70c062a4730e620576f62ded057","label":"fastify/fast-uri@0542a21"},"references":[{"type":"ADVISORY","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16221.json"},{"type":"ADVISORY","url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-v2hh-gcrm-f6hx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16221"},{"type":"WEB","url":"https://github.com/fastify/fast-uri/commit/0542a216860fd70c062a4730e620576f62ded057"},{"type":"WEB","url":"https://github.com/fastify/fast-uri/commit/2d50fbabc80e4d0884fe0f6a98fe118ce6faa353"},{"type":"WEB","url":"https://github.com/fastify/fast-uri/commit/9438266d6a7ded688c8bc7c4ba506da17f44a17b"},{"type":"PACKAGE","url":"https://github.com/fastify/fast-uri"},{"type":"WEB","url":"https://github.com/fastify/fast-uri/releases/tag/v2.4.3"},{"type":"WEB","url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.4"},{"type":"WEB","url":"https://github.com/fastify/fast-uri/releases/tag/v4.1.1"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:45.288691315Z"}}