CVE-2026-76172
High · 7.5CVSS
7.5
EPSS
0.4%
Published
Aug 24, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- GHSA-x428-ghpx-8j92 @fastify/static vulnerable to route guard bypass via encoded path separators CWE-177
- CVE-2026-6414 @fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F)… CWE-177
- CVE-2026-29045 Hono is a Web application framework that provides support for any JavaScript runtime. CWE-177
- GHSA-q5qw-h33p-qvwr Hono vulnerable to arbitrary file access via serveStatic vulnerability CWE-177
- GHSA-g6q3-96cp-5r5m @fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding) CWE-177
- GHSA-cxrg-g7r8-w69p Fastify Middie Middleware Path Bypass CWE-177
- CVE-2026-22037 The @fastify/express plugin adds full Express compatibility to Fastify. CWE-177
- CVE-2026-22031 @fastify/middie is the plugin that adds middleware support on steroids to Fastify. CWE-177