CVE-2026-75931
Received Received - Intake

Host Confusion in fast-uri URI Parser

Vulnerability report for CVE-2026-75931, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-24

Last updated on: 2026-08-24

Assigner: openjs

Description

fast-uri is a URI parser for Node.js. It canonicalizes a host to its ASCII form only when the input carries an explicit scheme, so a scheme-relative reference such as a host preceded by two slashes is returned with its host verbatim and no error set. As a result fast-uri's own entry points disagree with each other: parse, resolve, normalize, and equal can yield different hosts for the same input depending only on whether a scheme is written out, and equal can return opposite verdicts for the same pair of hosts. An application that extracts a host with fast-uri to check it against a policy list and then resolves the same reference can make its decision on one host while the destination is another, enabling host confusion and policy bypass. The affected versions are 2.4.2 up to but not including 2.4.5, 3.1.3 up to but not including 3.1.6, and 4.0.1 up to but not including 4.1.3. The issue is fixed in 2.4.5, 3.1.6, and 4.1.3, which canonicalize the host consistently across the resolve path. Users should upgrade to a patched version.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-24
Last Modified
2026-08-24
Generated
2026-08-24
AI Q&A
2026-08-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
fastify fast-uri From 2.4.2 (inc) to 2.4.5 (exc)
fastify fast-uri From 3.1.3 (inc) to 3.1.6 (exc)
fastify fast-uri From 4.0.1 (inc) to 4.1.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-436 Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the fast-uri library in Node.js. It occurs when the parser processes scheme-relative references like //host/. The issue is that the host is not converted to ASCII form consistently across different functions like parse, resolve, normalize, and equal. This leads to different interpretations of the same input depending on whether a scheme is present, causing potential host confusion and policy bypass.

Detection Guidance

Check the installed version of fast-uri in your Node.js environment using npm list fast-uri. If the version is between 2.4.2-2.4.4, 3.1.3-3.1.5, or 4.0.1-4.1.2, the system is vulnerable.

Impact Analysis

This vulnerability can allow an attacker to bypass host-based security policies. Applications using vulnerable versions may make incorrect decisions about hosts when checking policies, leading to unauthorized access or data leaks. The impact is rated High due to potential integrity breaches without requiring privileges or user interaction.

Compliance Impact

This vulnerability could lead to violations of data protection regulations like GDPR or HIPAA by enabling unauthorized access to systems or data. If an application incorrectly resolves a host due to this issue, it might mishandle sensitive data, resulting in non-compliance with security and privacy requirements.

Mitigation Strategies

Upgrade fast-uri to a patched version (2.4.5, 3.1.6, or 4.1.3) immediately. If immediate upgrade is not possible, implement a workaround by resolving scheme-relative references against a base URI with a scheme before performing host-policy checks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-75931. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart