CVE-2026-16221

Source
https://cve.org/CVERecord?id=CVE-2026-16221
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-16221.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-16221
Aliases
Downstream
Related
Published
2026-07-19T14:08:32.993Z
Modified
2026-07-26T05:12:47.926701193Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
fast-uri vulnerable to host confusion via literal backslash authority delimiter
Details

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.

Database specific
{
    "cna_assigner": "openjs",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16221.json",
    "cwe_ids": [
        "CWE-436"
    ]
}
References

Affected packages

Git / github.com/fastify/fast-uri

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fast-uri
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "2.3.1"
        },
        {
            "fixed": "2.4.3"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "3.1.4"
        },
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.1.1"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v2.*
v2.3.1
v2.4.0
v2.4.1
v2.4.2
v3.*
v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.0.5
v3.0.6
v3.1.0
v3.1.1
v3.1.2
v3.1.3
v4.*
v4.0.0
v4.0.1
v4.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-16221.json"