{"schema":"threatline.record/2","record":{"id":"CVE-2026-110180","aliases":["GHSA-wjr9-j795-jxcr"],"summary":"fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization","details":"### Impact\n\n`fast-uri` versions `>= 2.4.2, <= 2.4.7`, `>= 3.1.3, <= 3.1.8`, and `>= 4.0.1, <= 4.2.2` can silently rewrite the host of an HTTP-family URL (`http`, `https`, `ws`, `wss`, or any scheme with `domainHost: true`). For those schemes `canonicalizeHost()` passes the parsed host to the WHATWG `URL` parser and adopts its `.hostname` without checking that the parser read the whole input as a host. RFC 3986 permits `@` inside the host group and the WHATWG parser strips TAB, LF, and CR, so the authority `fast-uri` reports is rewritten by that second parser with no `error` set: data before an `@` is dropped and whitespace is removed.\n\nFor example, `fast-uri` parses `http://a@b@evil.example/` to host `evil.example` (dropping the `b` segment), and a host containing a raw TAB, CR, or LF has those characters stripped. `equal()` then treats a whitespace-smuggled host as the same as the clean one, and `resolve()` rewrites the authority the same way.\n\nApplications that use `fast-uri` to enforce host-based policy (denylists, loopback filtering, redirect validation, outbound proxy routing) on one representation, such as the raw input, see a policy/use desync: the canonical host `fast-uri` returns differs from what was checked, and traffic can be steered to an unintended destination.\n\n### Patches\n\nUpgrade to `fast-uri` `2.4.8`, `3.1.9`, or `4.2.3`.\n\n### Workarounds\n\nReject URIs whose authority contains more than one `@`, or contains TAB, CR, or LF, before calling `fast-uri`. Alternatively, treat any non-empty `parse(x).error` as fatal, and compare hosts only from the same `parse()` result.","categories":["Libraries & packages"],"product":"fast-uri","vendor":"fast-uri","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:38:02Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"ecosystem":"npm","name":"fast-uri"},"range":">= 2.4.2, < 2.4.8"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:38:02Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"ecosystem":"npm","name":"fast-uri"},"range":">= 3.1.3, < 3.1.9"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:38:02Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"ecosystem":"npm","name":"fast-uri"},"range":">= 4.0.1, < 4.2.3"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-110180","source_modified_at":"2026-10-20T16:06:48.503Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"fast-uri","vendor":"fast-uri","versions":[{"lessThan":"2.4.8","status":"affected","version":"2.4.2","versionType":"semver"},{"status":"unaffected","version":"2.4.8","versionType":"semver"},{"lessThan":"3.1.9","status":"affected","version":"3.1.3","versionType":"semver"},{"status":"unaffected","version":"3.1.9","versionType":"semver"},{"lessThan":"4.2.3","status":"affected","version":"4.0.1","versionType":"semver"},{"status":"unaffected","version":"4.2.3","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:45:04.892054666Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"name":"fast-uri","ecosystem":"npm","purl":"pkg:npm/fast-uri"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.4.2"},{"fixed":"2.4.8"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:45:04.892054666Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"name":"fast-uri","ecosystem":"npm","purl":"pkg:npm/fast-uri"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.1.3"},{"fixed":"3.1.9"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:45:04.892054666Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"name":"fast-uri","ecosystem":"npm","purl":"pkg:npm/fast-uri"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.1"},{"fixed":"4.2.3"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:38:02Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"ecosystem":"npm","name":"fast-uri"},"version":"2.4.8"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:38:02Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"ecosystem":"npm","name":"fast-uri"},"version":"3.1.9"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:38:02Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"ecosystem":"npm","name":"fast-uri"},"version":"4.2.3"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-110180","source_modified_at":"2026-10-20T16:06:48.503Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"fast-uri","ecosystem":null},"version":"2.4.8","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-110180","source_modified_at":"2026-10-20T16:06:48.503Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"fast-uri","ecosystem":null},"version":"3.1.9","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-110180","source_modified_at":"2026-10-20T16:06:48.503Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"fast-uri","ecosystem":null},"version":"4.2.3","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:45:04.892054666Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"name":"fast-uri","ecosystem":"npm","purl":"pkg:npm/fast-uri"},"version":"2.4.8"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:45:04.892054666Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"name":"fast-uri","ecosystem":"npm","purl":"pkg:npm/fast-uri"},"version":"3.1.9"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","source_modified_at":"2026-10-23T21:45:04.892054666Z","fetched_at":"2026-10-23T21:47:51.402276Z","package":{"name":"fast-uri","ecosystem":"npm","purl":"pkg:npm/fast-uri"},"version":"4.2.3"}],"cvss":4.8,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00208,"percentile":0.10411,"score_date":"2026-10-23"},"published_at":"2026-10-20T07:00:42.153Z","modified_at":"2026-10-23T21:45:04.892054666Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","fetched_at":"2026-10-23T21:47:51.402276Z","source_modified_at":"2026-10-23T21:38:02Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-110180","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-20T16:06:48.503Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-wjr9-j795-jxcr","fetched_at":"2026-10-23T21:47:51.402276Z","source_modified_at":"2026-10-23T21:45:04.892054666Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-110180","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-wjr9-j795-jxcr"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-110180","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/commit/58c183d0b168ad87f98773266444ce1f6375803a","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/commit/ddfc6a51122dfce0365655f04479fc3adb7f6b3c","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/commit/f6d46dfeab025d0c440485f4ae29fa4f14707646","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://cna.openjsf.org/security-advisories.html"},{"url":"https://github.com/fastify/fast-uri/releases/tag/v2.4.8","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.9","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/releases/tag/v4.2.3","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-wjr9-j795-jxcr","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-20T16:06:29.053757Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-23T21:45:04.892054666Z","content_hash":"2fb6afe34f8292fb958a4ae67c6e641cb6c351c18595926af3f94ca7bc3f848d"}}
