{"id":"CVE-2026-75931","aliases":["CVE-2026-75931","GHSA-5jgf-p345-68v8"],"related":[],"kind":"vulnerability","state":"published","title":"fast-uri vulnerable to host confusion via skipped IDN canonicalization on scheme-relative references","summary":"fast-uri is a URI parser for Node.js. It canonicalizes a host to its ASCII form only when the input carries an explicit scheme, so a scheme-relative reference such as a host preceded by two slashes is returned with its host verbatim and no error set. As a result fast-uri's own entry points disagree with each other: parse, resolve, normalize, and equal can yield different hosts for the same input depending only on whether a scheme is written out, and equal can return opposite verdicts for the same pair of hosts. An application that extracts a host with fast-uri to check it against a policy list and then resolves the same reference can make its decision on one host while the destination is another, enabling host confusion and policy bypass. The affected versions are 2.4.2 up to but not including 2.4.5, 3.1.3 up to but not including 3.1.6, and 4.0.1 up to but not including 4.1.3. The issue is fixed in 2.4.5, 3.1.6, and 4.1.3, which canonicalize the host consistently across the resolve path. Users should upgrade to a patched version.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"fast-uri is a URI parser for Node.js. It canonicalizes a host to its ASCII form only when the input carries an explicit scheme, so a scheme-relative reference such as a host preceded by two slashes is returned with its host verbatim and no error set. As a result fast-uri's own entry points disagree with each other: parse, resolve, normalize, and equal can yield different hosts for the same input depending only on whether a scheme is written out, and equal can return opposite verdicts for the same pair of hosts. An application that extracts a host with fast-uri to check it against a policy list and then resolves the same reference can make its decision on one host while the destination is another, enabling host confusion and policy bypass. The affected versions are 2.4.2 up to but not including 2.4.5, 3.1.3 up to but not including 3.1.6, and 4.0.1 up to but not including 4.1.3. The issue is fixed in 2.4.5, 3.1.6, and 4.1.3, which canonicalize the host consistently across the resolve path. Users should upgrade to a patched version.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`fast-uri` canonicalizes a host to its ASCII form only when the input carries an explicit scheme. When `resolve()` resolves a scheme-relative reference (`//host/`) against a scheme-bearing base, it still emits the host verbatim even though the effective scheme is known, so re-parsing the resolved URI yields a different host than the one `resolve()` returned. An application that resolves an untrusted reference with `fast-uri` and then checks or routes on the resulting host can make a policy decision on one host and reach another. This is an incomplete-fix variant of CVE-2026-13676, whose IDN canonicalization was applied only to the scheme-bearing form.\n\n### Patches\n\nUpgrade to `fast-uri` 2.4.5, 3.1.6, or 4.1.3. `resolve()` now canonicalizes the host once the effective scheme is known, and fails closed if a raw non-ASCII host cannot be converted.\n\n### Workarounds\n\nResolve scheme-relative references against a base that carries a scheme before performing any host-policy or origin check.","format":"markdown","source":"ghsa"},{"lang":"es","text":"fast-uri es un analizador de URI para Node.js. Canoniza un host a su forma ASCII solo cuyo la entrada lleva un esquema explícito, por lo que una referencia relativa al esquema, como un host precedido por dos barras, se devuelve con su host literalmente y sin error establecido. Como resultado, los propios puntos de entrada de fast-uri discrepan entre sí: parse, resolve, normalize y equal pueden producir hosts diferentes para la misma entrada dependiendo únicamente de si un esquema está escrito, y equal puede devolver veredictos opuestos para el mismo par de hosts. Una aplicación que extrae un host con fast-uri para verificarlo contra una lista de políticas y luego resuelve la misma referencia puede tomar su decisión sobre un host mientras el destino es otro, lo que permite la confusión de hosts y la elusión de políticas. Las versiones afectadas son 2.4.2 hasta, pero sin incluir, 2.4.5; 3.1.3 hasta, pero sin incluir, 3.1.6; y 4.0.1 hasta, pero sin incluir, 4.1.3. El problema está solucionado en 2.4.5, 3.1.6 y 4.1.3, que canonizan el host de manera consistente a lo largo de la ruta de resolución. Los usuarios deben actualizar a una versión parcheada.","source":"nvd"}],"published":"2026-08-24T09:30:04.212Z","modified":"2026-10-14T13:10:00.187Z","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.2","fixed":"2.4.5","status":"affected"},{"type":"semver","version":"2.4.5","status":"unaffected"},{"type":"semver","introduced":"3.1.3","fixed":"3.1.6","status":"affected"},{"type":"semver","version":"3.1.6","status":"unaffected"},{"type":"semver","introduced":"4.0.1","fixed":"4.1.3","status":"affected"},{"type":"semver","version":"4.1.3","status":"unaffected"}],"vendor":"fast-uri","product":"fast-uri","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.4.2","status":"affected","fixed":"2.4.5"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.1.3","status":"affected","fixed":"3.1.6"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.1","status":"affected","fixed":"4.1.3"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.4.2","fixed":"2.4.5"},{"status":"affected","introduced":"3.1.3","fixed":"3.1.6"},{"status":"affected","introduced":"4.0.1","fixed":"4.1.3"}],"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-5jgf-p345-68v8","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-75931","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/0256bc8d1f28b5d0ac657faf67e2411a189dfcb5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/444ecdad447db2cc23c4d422acc6f0daa6fa8eef","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/4e4ebd8b245f6ca16e448203559eea3e545453a3","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.5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v4.1.3","tags":["web"],"sources":["ghsa"]}],"credits":["baeseungwon1010","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-24T16:28:35.705Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-75931","url":"https://www.cve.org/CVERecord?id=CVE-2026-75931","licence":"CVE Terms of Use","modified":"2026-08-24T16:28:48.098Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5jgf-p345-68v8","url":"https://github.com/advisories/GHSA-5jgf-p345-68v8","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:15.083Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-75931","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-75931","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:34.991Z","epss":{"score":0.00232,"percentile":0.15063,"date":"2026-12-01T12:00:22.000Z"}}