CVE-2026-13676

fast-uri vulnerable to host confusion via failed IDN canonicalization

State
Published
Severity
7.5 High
Published
Jun 29, 2026
Updated
Sep 11, 2026
Reserved
Jun 29, 2026

Read the record on cve.org

Description

fast-uri versions 2.3.1 through 3.1.2 and 4.0.0 fail to canonicalize Unicode (IDN) hostnames for HTTP-family URLs. The IDN conversion path calls a helper that does not exist on the global URL constructor, silently leaving the host in its original Unicode form while normalize() and equal() still return values that differ from a WHATWG-compatible URL parser. Applications that use fast-uri to enforce host-based policy (denylists, loopback filtering, redirect validation, outbound proxy routing) before passing the same URL to Node's URL or fetch can be bypassed when the two implementations resolve the same input to different hosts. Patches: upgrade to fast-uri 3.1.3 for the 3.x line or 4.0.1 for the 4.x line. Workarounds: enforce host policy using the same URL parser used for the actual request, or reject non-ASCII hosts before policy checks.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:Nopenjs
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:Nredhat-SADP

Weaknesses

  • CWE-436 Interpretation Conflict
  • CWE-551 Incorrect Behavior Order: Authorization Before Parsing and Canonicalization

Affected Products

ProductVersions
fast-urifast-uri
  • 4.0.0 to before 4.0.1Affected
  • 4.0.1Not affected
  • 2.3.1 to before 3.1.3Affected
  • 3.1.3Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.