{"id":"CVE-2026-16221","aliases":["CVE-2026-16221","GHSA-v2hh-gcrm-f6hx"],"related":[],"kind":"vulnerability","state":"published","title":"fast-uri vulnerable to host confusion via literal backslash authority delimiter","summary":"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. \n\nPatches: upgrade to fast-uri 4.1.1, 3.1.4, or 2.4.3.\n\nWorkarounds: none.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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. \n\nPatches: upgrade to fast-uri 4.1.1, 3.1.4, or 2.4.3.\n\nWorkarounds: none.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-07-19T14:08:32.993Z","modified":"2026-09-10T03:51:12.051Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-436"],"affected":[{"ranges":[{"type":"semver","introduced":"2.3.1","fixed":"2.4.3","status":"affected"},{"type":"semver","version":"2.4.3","status":"unaffected"},{"type":"semver","introduced":"3.0.0","fixed":"3.1.4","status":"affected"},{"type":"semver","version":"3.1.4","status":"unaffected"},{"type":"semver","introduced":"4.0.0","fixed":"4.1.1","status":"affected"},{"type":"semver","version":"4.1.1","status":"unaffected"}],"vendor":"fast-uri","product":"fast-uri","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.3.1","status":"affected","fixed":"2.4.3"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.4"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.1.1"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.3.1","fixed":"2.4.3"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.4"},{"status":"affected","introduced":"4.0.0","fixed":"4.1.1"}],"vendor":"openjsf","product":"fast-uri","cpe":"cpe:2.3:a:openjsf:fast-uri:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-v2hh-gcrm-f6hx","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16221","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/0542a216860fd70c062a4730e620576f62ded057","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/2d50fbabc80e4d0884fe0f6a98fe118ce6faa353","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/9438266d6a7ded688c8bc7c4ba506da17f44a17b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v2.4.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v4.1.1","tags":["web"],"sources":["ghsa"]}],"credits":["rampage0010","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-20T13:53:31.279Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-16221","url":"https://www.cve.org/CVERecord?id=CVE-2026-16221","licence":"CVE Terms of Use","modified":"2026-07-20T13:53:42.583Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v2hh-gcrm-f6hx","url":"https://github.com/advisories/GHSA-v2hh-gcrm-f6hx","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:12.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-16221","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16221","licence":"Public domain","modified":"2026-08-05T19:46:09.890Z"}],"updatedAt":"2026-11-25T22:59:28.755Z","epss":{"score":0.00254,"percentile":0.18072,"date":"2026-12-01T12:00:22.000Z"}}