{"id":"CVE-2026-84394","aliases":["CVE-2026-84394","GHSA-58mr-gqgx-xq4g"],"related":[],"kind":"vulnerability","state":"published","title":"fast-uri vulnerable to host confusion via an unclosed bracket in the URI authority","summary":"fast-uri accepts a host that contains an unbalanced or misplaced authority bracket without reporting an error. A host that starts with an opening bracket but does not end with a closing bracket is neither validated as an IP literal nor canonicalized as a domain name, so parse() returns it as the host with error undefined, while Node's URL and the HTTP clients built on it resolve the same string to a different host. An application that reads the parsed host to make a host decision, such as an SSRF denylist, a redirect allowlist, or proxy routing, and then passes the original URL to an HTTP client evaluates its policy against a string that is not the host the request reaches. The same host is carried through normalize, equal, and resolve. This affects fast-uri versions 2.4.5, 3.1.6, and 4.1.3, and is fixed in 2.4.6, 3.1.7, and 4.1.4, where parse() reports a malformed host for any host that contains a bracket but is not a valid IPv6 literal.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"fast-uri accepts a host that contains an unbalanced or misplaced authority bracket without reporting an error. A host that starts with an opening bracket but does not end with a closing bracket is neither validated as an IP literal nor canonicalized as a domain name, so parse() returns it as the host with error undefined, while Node's URL and the HTTP clients built on it resolve the same string to a different host. An application that reads the parsed host to make a host decision, such as an SSRF denylist, a redirect allowlist, or proxy routing, and then passes the original URL to an HTTP client evaluates its policy against a string that is not the host the request reaches. The same host is carried through normalize, equal, and resolve. This affects fast-uri versions 2.4.5, 3.1.6, and 4.1.3, and is fixed in 2.4.6, 3.1.7, and 4.1.4, where parse() reports a malformed host for any host that contains a bracket but is not a valid IPv6 literal.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`fast-uri` accepts a host that contains an unbalanced or misplaced authority bracket (`[` or `]`) without reporting an error. A host that starts with `[` but does not end with `]`, such as `[@127.0.0.1`, is neither validated as an IP literal nor canonicalized as a domain name, so `parse()` returns it as the host with `error` undefined, while Node's `URL` (and `http.get`, `axios`, `got`, and other clients built on it) resolve the same string to `127.0.0.1`. An application that reads `parse().host` to make a host decision (an SSRF denylist, a redirect allowlist, or proxy routing) and then passes the original URL to an HTTP client evaluates its policy against a string that is not the host the request reaches. The same host is carried through `normalize()`, `equal()`, and `resolve()`.\n\n### Patches\n\nThis vulnerability has been patched in fast-uri `4.1.4`, `3.1.7`, and `2.4.6`. `parse()` now reports `URI host is malformed.` for any host that contains a bracket but is not a valid `[IPv6]` literal. All users should upgrade.\n\n### Workarounds\n\nIf upgrading is not immediately possible, reject any URL whose host contains a `[` or `]` that is not a well-formed IPv6 literal before making a host decision. Clients that fail closed on credential-bearing URLs, such as Node's global `fetch()`, are not affected by the reported vector.","format":"markdown","source":"ghsa"}],"published":"2026-09-02T20:25:35.399Z","modified":"2026-09-28T21:30:05.360Z","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.4.5","fixed":"2.4.6","status":"affected"},{"type":"semver","version":"2.4.6","status":"unaffected"},{"type":"semver","introduced":"3.1.6","fixed":"3.1.7","status":"affected"},{"type":"semver","version":"3.1.7","status":"unaffected"},{"type":"semver","introduced":"4.1.3","fixed":"4.1.4","status":"affected"},{"type":"semver","version":"4.1.4","status":"unaffected"}],"vendor":"fast-uri","product":"fast-uri","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.4.5","status":"affected","fixed":"2.4.6"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.1.6","status":"affected","fixed":"3.1.7"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.1.3","status":"affected","fixed":"4.1.4"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.4.5"},{"status":"affected","version":"3.1.6"},{"status":"affected","version":"4.1.3"}],"vendor":"openjsf","product":"fast-uri","cpe":"cpe:2.3:a:openjsf:fast-uri:2.4.5:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-58mr-gqgx-xq4g","tags":["mitigation","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-84394","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/pull/214","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/e00815236bc94107e44ef1b2f5318a06bac225c0","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.6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v4.1.4","tags":["web"],"sources":["ghsa"]}],"credits":["YashvantHange","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-03T13:14:34.742Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-84394","url":"https://www.cve.org/CVERecord?id=CVE-2026-84394","licence":"CVE Terms of Use","modified":"2026-09-03T13:14:42.123Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-58mr-gqgx-xq4g","url":"https://github.com/advisories/GHSA-58mr-gqgx-xq4g","licence":"CC-BY-4.0","modified":"2026-09-28T21:30:05.360Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-84394","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84394","licence":"Public domain","modified":"2026-09-04T16:12:20.970Z"}],"updatedAt":"2026-11-25T22:59:36.147Z","epss":{"score":0.0038,"percentile":0.23849,"date":"2026-11-30T12:00:22.000Z"}}