{"id":"CVE-2026-76172","published":"2026-08-24T10:07:56Z","modified":"2026-08-24T14:29:37Z","title":"fast-uri vulnerable to host confusion via percent-encoded scheme normalization","vendor":"fast-uri","product":"fast-uri","tier":"tail","description":{"text":"fast-uri is a URI parser for Node.js. During parsing it runs a legacy decoding pass over the scheme component and never re-escapes the result, and serialization writes the scheme back out verbatim, unlike the host component which is re-escaped. As a result an input whose scheme carries percent-encoded slashes parses as a scheme with no authority, so the parsed host and error are both undefined, yet resolving or normalizing that same input emits a network-path reference whose authority is attacker-chosen and re-parses to that host. An application that allowlists on the parsed host, or treats a reference with no authority as safe to resolve against its base, gets the opposite of what it checked, giving an off-site redirect, server-side request forgery, or address-policy bypass. The legacy decoder also expands non-standard escape forms, widening the issue past upstream filters, and control characters in the scheme can reach the output as raw carriage return and line feed. The affected versions are 2.3.1 up to but not including 2.4.5, 3.0.0 up to but not including 3.1.6, and 4.0.0 up to but not including 4.1.3. The issue is fixed in 2.4.5, 3.1.6, and 4.1.3, which reject a scheme that is not valid after decoding. Users should upgrade to a patched version.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00232,"percentile":0.14364,"provenance":"source"},"cwes":[{"id":"CWE-177","name":"Improper Handling of URL Encoding (Hex Encoding)"}],"references":[{"url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-jqff-g426-hqxp","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.87},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fast-uri","affectedVersions":[{"vendor":"fast-uri","product":"fast-uri","versions":[">= 2.3.1, < 2.4.5",">= 3.0.0, < 3.1.6",">= 4.0.0, < 4.1.3"]}],"fixedVersions":[{"vendor":"fast-uri","product":"fast-uri","versions":["2.4.5","3.1.6","4.1.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-24T14:29:20.006884Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-uri","vulnerableRanges":[">=2.3.1, <2.4.5",">=3.0.0, <3.1.6",">=4.0.0, <4.1.3"],"patched":["2.4.5","3.1.6","4.1.3"],"from":["GHSA-jqff-g426-hqxp"],"provenance":"source"}],"summary":{"text":"fast-uri, the URI parser for Node.js, mishandles percent-encoded scheme components during parsing and serialization, so a scheme containing encoded slashes is parsed as having no authority while the normalized output carries an attacker-chosen host. An attacker who can supply a crafted URI to an application that uses fast-uri needs no privileges or user interaction, and exploitation succeeds when the application validates the parsed host or treats an authority-less reference as safe to resolve against its base.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:33Z"},"euvd":{"id":"EUVD-2026-64773","exploited":false,"provenance":"source"}}