← Back to overview

A vulnerability in the fast-uri npm package allows attackers to inject authority delimiters via an unvalidated port component during URI serialization. When recomposing a URI's authority section, the port value is concatenated verbatim without validation, enabling a malicious port string to demote the intended host to userinfo and redirect the URI to an attacker-controlled host. Both fast-uri and Node's built-in URL parser accept the malformed URI without error, making re-validation ineffective. The issue affects applications using serialize, normalize, or equal functions with untrusted port data. Affected versions include fast-uri before 2.4.6, 3.0.0–3.1.6, and 4.0.0–4.1.3. The vulnerability is fixed in versions 2.4.6, 3.1.7, and 4.1.4, where recomposeAuthority now enforces RFC 3986 compliance by rejecting non-digit port values.

Affected products

  • Node.js URL
  • fast-uri

Related CVE's

  • CVE-2026-84292

Categories

  • Supply Chain & Dependencies
  • Web Technologies