# CVE-2026-16221: fast-uri vulnerable to host confusion via literal backslash authority delimiter

- Severity: High 7.5 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-07-19T14:08:32.993Z
- Modified: 2026-09-10T03:51:12.051Z
- Also known as: GHSA-v2hh-gcrm-f6hx
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## Description

Impact: fast-uri versions from 2.3.1 through 4.1.0 (including the 3.x line up to 3.1.3 and the 2.x line up to 2.4.2) do not treat a literal backslash character (U+005C) as an authority delimiter. Node's native WHATWG URL parser, used by fetch, undici, and Node's http and https clients, normalizes the backslash to a forward slash for special schemes such as http, https, ws, wss, ftp, and file. As a result, the two parsers extract different hosts from the same input string. Applications that use fast-uri to enforce host-based policy such as allowlists, denylists, loopback or SSRF filtering, redirect validation, or outbound proxy routing before passing the same URL into Node's URL or fetch consumers can be steered to an unintended destination, including cloud metadata endpoints, loopback, or internal hosts. 

Patches: upgrade to fast-uri 4.1.1, 3.1.4, or 2.4.3.

Workarounds: none.

(As written by CVE List.)

## Affected

- fast-uri fast-uri: from 2.3.1 before 2.4.3; from 3.0.0 before 3.1.4; from 4.0.0 before 4.1.1 (not affected: 2.4.3; 3.1.4; 4.1.1)
- fast-uri (npm): from 2.3.1 before 2.4.3; from 3.0.0 before 3.1.4; from 4.0.0 before 4.1.1
- openjsf fast-uri: from 2.3.1 before 2.4.3; from 3.0.0 before 3.1.4; from 4.0.0 before 4.1.1

## Every score

- openjs: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/fastify/fast-uri/security/advisories/GHSA-v2hh-gcrm-f6hx> (vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-16221> (advisory)
- <https://github.com/fastify/fast-uri/commit/0542a216860fd70c062a4730e620576f62ded057> (web)
- <https://github.com/fastify/fast-uri/commit/2d50fbabc80e4d0884fe0f6a98fe118ce6faa353> (web)
- <https://github.com/fastify/fast-uri/commit/9438266d6a7ded688c8bc7c4ba506da17f44a17b> (web)
- <https://github.com/fastify/fast-uri> (package)
- <https://github.com/fastify/fast-uri/releases/tag/v2.4.3> (web)
- <https://github.com/fastify/fast-uri/releases/tag/v3.1.4> (web)
- <https://github.com/fastify/fast-uri/releases/tag/v4.1.1> (web)

## Sources

- CVE List: [CVE-2026-16221](https://www.cve.org/CVERecord?id=CVE-2026-16221), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-v2hh-gcrm-f6hx](https://github.com/advisories/GHSA-v2hh-gcrm-f6hx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-16221](https://nvd.nist.gov/vuln/detail/CVE-2026-16221), Public domain, modified 2026-08-05

---

Page: https://cve.day/CVE-2026-16221 · Whole record: https://cve.day/CVE-2026-16221.json · Rebuilt by cve.day 2026-11-25T22:59:28.755Z
