Description
fast-uri serializes the port component of a URI without validating it. When recomposing the authority, the userinfo and host components are escaped but the port is concatenated verbatim, so a port value that is not a sequence of digits can inject authority delimiters, demoting the intended host to userinfo and pointing the authority at an attacker-controlled host. Both fast-uri and Node's URL read the result back as the attacker's host with no error, so re-validating the built URI does not catch it. This affects applications that build URIs from parts and assign untrusted data to the port component through the serialize, normalize, or equal functions in their object forms. The issue affects fast-uri versions before 2.4.6, from 3.0.0 before 3.1.7, and from 4.0.0 before 4.1.4. It is fixed in 2.4.6, 3.1.7, and 4.1.4, where recomposeAuthority rejects any port that is not a digit sequence per RFC 3986.
Published: 2026-09-02
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Fast‑uri serializes the port component of a URI without validating it. When the authority is recomposed the port is concatenated verbatim, so a non‑numeric port can inject authority delimiters. This transforms the intended host into attacker‑controlled userinfo and directs the URI to an arbitrary host. The flaw is a classic example of unvalidated user input leading to injection (CWE‑116, CWE‑140).

Affected Systems

The vulnerability exists in fast‑uri versions prior to 2.4.6, 3.1.7, and 4.1.4. Applications that build URIs from components—particularly those that use fast‑uri's serialize, normalize, or equal functions—are impacted. Node.js applications that rely on the URL module to parse the resulting URI also inherit the issue because they accept the malformed URL without error.

Risk and Exploitability

Fast‑uri has a high CVSS score of 7.5, indicating substantial impact if exploited. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, though the lack of a known exploit does not diminish potential risk. Attackers can leverage crafted URIs supplied to any vulnerable application, potentially manipulating end‑users to contact attacker‑controlled hosts or bypass authentication. The exploitation path requires only a malicious URI and does not need privileged access, making the threat realistic for public‑facing services that use fast‑uri.

Generated by OpenCVE AI on September 3, 2026 at 14:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade fast‑uri to v2.4.6, v3.1.7, or v4.1.4 or later. This change rejects any non‑digit port, preventing injection.
  • If an upgrade is not immediately possible, validate the port component before passing it to serialize, normalize, or equal functions—accept only numeric strings that match RFC 3986. Reject or sanitize any non‑numeric values to avoid injection.
  • Add an additional security layer that checks constructed URLs against RFC 3986 before use or after recomposition, ensuring the authority part contains only trusted host data.

Generated by OpenCVE AI on September 3, 2026 at 14:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-140
References
Metrics threat_severity

None

threat_severity

Important


Thu, 03 Sep 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Fast-uri
Fast-uri fast-uri
Vendors & Products Fast-uri
Fast-uri fast-uri

Wed, 02 Sep 2026 20:15:00 +0000

Type Values Removed Values Added
Description fast-uri serializes the port component of a URI without validating it. When recomposing the authority, the userinfo and host components are escaped but the port is concatenated verbatim, so a port value that is not a sequence of digits can inject authority delimiters, demoting the intended host to userinfo and pointing the authority at an attacker-controlled host. Both fast-uri and Node's URL read the result back as the attacker's host with no error, so re-validating the built URI does not catch it. This affects applications that build URIs from parts and assign untrusted data to the port component through the serialize, normalize, or equal functions in their object forms. The issue affects fast-uri versions before 2.4.6, from 3.0.0 before 3.1.7, and from 4.0.0 before 4.1.4. It is fixed in 2.4.6, 3.1.7, and 4.1.4, where recomposeAuthority rejects any port that is not a digit sequence per RFC 3986.
Title fast-uri vulnerable to authority injection via an unvalidated port in serialize
Weaknesses CWE-116
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Fast-uri Fast-uri
cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-09-03T13:16:25.237Z

Reserved: 2026-09-01T16:10:49.688Z

Link: CVE-2026-84292

cve-icon Vulnrichment

Updated: 2026-09-03T13:16:21.895Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-09-02T20:17:39.543

Modified: 2026-09-03T18:11:49.487

Link: CVE-2026-84292

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-02T20:09:51Z

Links: CVE-2026-84292 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T14:15:06Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-140

    Improper Neutralization of Delimiters