Medium · 6.1 Node.js & npm CVE-2026-110095 GHSA-xhq7-xmqj-769h CVE-2026-110180 GHSA-wjr9-j795-jxcr
Four fast-uri Vulnerabilities Allow Path, Host, and Scheme Confusion in URI Parsing
Four low-to-medium severity flaws in the fast-uri npm package can cause URI normalization, host canonicalization, and scheme validation to produce misleading results, potentially enabling path traversal, host confusion, or cross-site scripting in applications that rely on fast-uri for security decisions. Fixed versions are available.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
- NVD (NIST) database 1mo ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
- NVD (NIST) database 1mo ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
- NVD (NIST) database 1mo ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
- NVD (NIST) database 1mo ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
AI summary
Four related vulnerabilities have been published for fast-uri, a dependency-free RFC 3986 URI parser and serializer used in Node.js applications. Each flaw involves a different edge case in how fast-uri normalizes, serializes, or canonicalizes URIs, and each can cause the library to produce a result that diverges from what an application checked or expected. None of the issues are reported as actively exploited, and no public exploit code is referenced in the fact package. Fixed versions are available for all four issues.
What happened
Four distinct vulnerabilities were disclosed in fast-uri: - CVE-2026-110095 (GHSA-xhq7-xmqj-769h): The normalize() and serialize() functions apply dot-segment removal to relative-path references even when RFC 3986 only defines that algorithm for merged paths during resolution. A leading parent-directory segment can be dropped, turning a document-relative reference into a root-relative one. - CVE-2026-110180 (GHSA-wjr9-j795-jxcr): For HTTP-family schemes, canonicalizeHost() passes the parsed host to the WHATWG URL parser and adopts its hostname without verifying the parser consumed the entire input as a host. Data before an at-sign can be silently dropped, and tab, carriage-return, and line-feed characters are stripped without an error being reported. - CVE-2026-110306 (GHSA-w74x-v6f9-j3xg): fast-uri percent-decodes the scheme component using the legacy unescape() function before validating it. An input whose decoded scheme is a dangerous token (such as javascript, data, or vbscript) can be emitted as a live scheme, even though RFC 3986 does not permit percent-encoding in a scheme. - CVE-2026-110725 (GHSA-333x-w4r6-6crp): When serialize(), normalize(), or resolve() are called with the non-default reference option set to suffix on a reference without an authority, the emitted relative reference can contain an unescaped colon in its first path segment, which makes the string reparse as an absolute URI with a scheme.
Technical cause
Each issue stems from fast-uri applying a normalization, decoding, or canonicalization step that is either too broad (applying resolution-only rules outside resolution, decoding before validation) or too permissive (not checking that a lower-level parser consumed its entire input, or not escaping characters that RFC 3986 requires to be escaped). The result in each case is that fast-uri can produce an output that differs from what a naive reading of the input, or an upstream security check, would expect.
Why it matters
Applications that use fast-uri to normalize, resolve, or compare URIs as part of a security decision can be affected. Specific consequences described for each issue include: a normalized relative reference escaping its intended directory and pointing at a different resource (CVE-2026-110095); host-based policy checks such as denylists, loopback filtering, redirect validation, or outbound proxy routing seeing the canonical host diverge from what was checked, allowing traffic to be steered to an unintended destination (CVE-2026-110180); an application that screens dangerous schemes on raw input but stores or renders the normalized result turning an inert string into an executable javascript, data, or vbscript URL, a cross-site scripting vector (CVE-2026-110306); and an application serializing or normalizing a reference with the suffix option turning inert input into a live URI with a dangerous scheme, also a cross-site scripting vector, with exposure limited to applications that use the non-default suffix reference option (CVE-2026-110725). For CVE-2026-110306 and CVE-2026-110180, the equal() comparison function can also treat differently-encoded or differently-formed values as equal, which can bypass equality-based allowlists.
Affected versions
CVE-2026-110095 affects fast-uri before 2.4.8, from 3.0.0 through 3.1.8, and from 4.0.0 through 4.2.2. CVE-2026-110180 affects fast-uri from 2.4.2 through 2.4.7, from 3.1.3 through 3.1.8, and from 4.0.1 through 4.2.2. CVE-2026-110306 affects fast-uri before 2.4.8, from 3.0.0 through 3.1.8, and from 4.0.0 through 4.2.2. CVE-2026-110725 affects fast-uri before 2.4.8, from 3.0.0 through 3.1.8, and from 4.0.0 through 4.2.2.
Fixes and mitigation
All four issues are fixed in fast-uri 2.4.8, 3.1.9, and 4.2.3. Users should upgrade to one of these versions or later. Workarounds, if an immediate upgrade is not possible: - For CVE-2026-110095: resolve a relative reference against its absolute base first, and normalize the absolute result rather than normalizing the reference beforehand. - For CVE-2026-110180: reject an authority containing more than one at-sign or any tab, carriage-return, or line-feed character before calling fast-uri, or treat any non-empty parse error as fatal and compare hosts only from the same parse result. - For CVE-2026-110306: reject input whose scheme part contains a percent sign, or check the parsed scheme against an allowlist after normalization using that same parsed result rather than the raw string. - For CVE-2026-110725: avoid the suffix reference option on untrusted input, or percent-encode a colon in the first path segment of the result before treating it as a URI.
Recommended action
Identify any use of fast-uri in your dependency tree, directly or transitively, and upgrade to fast-uri 2.4.8, 3.1.9, or 4.2.3, or later, as applicable to your major version line. If immediate upgrading is not feasible, apply the workaround relevant to each issue listed above. Review any application logic that relies on fast-uri's normalize(), serialize(), resolve(), or equal() functions for security decisions such as path authorization, host allowlisting/denylisting, or scheme filtering, since these are the functions affected across the four issues.
PatchBriefing score
6.1 / 10 · Medium
Official CVSS: 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS 0.0029 (14 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- fast-uri >= 4.0.0, < 4.2.3
- vulnerable
- fast-uri ≥ 4.0.0 < 4.2.3
- vulnerable
- ≥ 2.4.8
- patched
- ≥ 3.1.9
- patched
- ≥ 4.2.3
- patched
- fast-uri >= 4.0.1, < 4.2.3
- vulnerable
- fast-uri ≥ 4.0.1 < 4.2.3
- vulnerable
- ≥ 2.4.8
- patched
- ≥ 3.1.9
- patched
- ≥ 4.2.3
- patched
- fast-uri >= 4.0.0, < 4.2.3
- vulnerable
- fast-uri ≥ 4.0.0 < 4.2.3
- vulnerable
- ≥ 2.4.8
- patched
- ≥ 3.1.9
- patched
- ≥ 4.2.3
- patched
- fast-uri >= 4.0.0, < 4.2.3
- vulnerable
- fast-uri ≥ 4.0.0 < 4.2.3
- vulnerable
- ≥ 2.4.8
- patched
- ≥ 3.1.9
- patched
- ≥ 4.2.3
- patched
Reported fixes
All four issues are fixed in fast-uri 2.4.8, 3.1.9, and 4.2.3. Users should upgrade to one of these versions or later. Workarounds, if an immediate upgrade is not possible: - For CVE-2026-110095: resolve a relative reference against its absolute base first, and normalize the absolute result rather than normalizing the reference beforehand. - For CVE-2026-110180: reject an authority containing more than one at-sign or any tab, carriage-return, or line-feed character before calling fast-uri, or treat any non-empty parse error as fatal and compare hosts only from the same parse result. - For CVE-2026-110306: reject input whose scheme part contains a percent sign, or check the parsed scheme against an allowlist after normalization using that same parsed result rather than the raw string. - For CVE-2026-110725: avoid the suffix reference option on untrusted input, or percent-encode a colon in the first path segment of the result before treating it as a URI.
How this was built
12 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
GitHub Advisory Database database
-
OSV.dev database
-
NVD (NIST) database
-
GitHub Advisory Database database
-
OSV.dev database
Revision history
- Published
- Generated