CVE-2026-75931
JSON

7.5high

fast-uri vulnerable to host confusion via skipped IDN canonicalization on scheme-relative references

Severity
7.5high CVSS:3.1 by openjs
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openjs
Also known as
GHSA-5jgf-p345-68v8

Description

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.

Affected

Product or packageVersionsReported by
fast-uri fast-urifrom 2.4.2 before 2.4.5, from 3.1.3 before 3.1.6, from 4.0.1 before 4.1.3
Not affected: 2.4.5, 3.1.6, 4.1.3
CVE List
fast-uri (npm)from 2.4.2 before 2.4.5, from 3.1.3 before 3.1.6, from 4.0.1 before 4.1.3GitHub Advisory Database
openjsf fast-urifrom 2.4.2 before 2.4.5, from 3.1.3 before 3.1.6, from 4.0.1 before 4.1.3NVD

All scores

openjs7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-436

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

Upgrade 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.

Workarounds

Resolve scheme-relative references against a base that carries a scheme before performing any host-policy or origin check.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-75931 changed 2026-08-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-5jgf-p345-68v8 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-75931 changed 2026-10-14Public domain