highCVSS 7.5Vulnerability

CVE-2026-84292

### Impact `fast-uri` serializes the `port` component of a URI without validating it. When recomposing the authority, `fast-uri` escapes the userinfo and host components but concatenates the port verbatim, so a `port` value that is not a sequence of digits can inject authority delimiters. For example, serializing a component whose `port` is `@127.0.0.1:8124` produces `http://trusted.example:@127.0.0.1:8124/app`, 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 (for example a fixed host from configuration and a port taken from user input or a service record). The same path is reachable through `serialize()`, `normalize()`, and `equal()` in their object forms. A `port` obtained from `parse()` is always digits and is not affected. ### Patches This vulnerability has been patched in fast-uri `4.1.4`, `3.1.7`, and `2.4.6`. `recomposeAuthority` now rejects any port that is not `*DIGIT` per RFC 3986. All users should upgrade. ### Workarounds If upgrading is not immediately possible, validate the `port` value against the RFC 3986 grammar (digits only) before passing a component to `serialize()`, `normalize()`, or `equal()`, and reject anything else, for example `if (!/^\d*$/.test(String(port))) throw new Error('invalid port')`.

Properties

summary
fast-uri vulnerable to authority injection via an unvalidated port in serialize
severity
high
cvss_score
7.5
cvss_severity
HIGH
retrieved_at
2026-09-29T00:57:22+00:00
ghsa_published
2026-09-28T21:24:39Z
source_url
https://github.com/advisories/GHSA-qw65-cvwx-89v3
ghsa_updated
2026-09-28T21:24:40Z
ghsa_id
GHSA-qw65-cvwx-89v3
last_source
GitHub Advisory Database
score
7.5
cve_id
CVE-2026-84292
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
signal_observed_at
2026-09-29T00:56:32+00:00
is_ghsa_only
false
vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
published_at
2026-09-02T20:17:39.543
last_modified
2026-09-28T23:10:00.143

Related Entities (6)

VULNERABLE_TO (1)

←[Software]npm/fast-uri

AFFECTS (1)

→[Software]npm/fast-uri

REPORTED_BY (1)

→[Source]GitHub Advisory Database

AFFECTS_PRODUCT (1)

→[Product]

HAS_WEAKNESS (1)

→[Weakness]Improper Encoding or Escaping of Output

DESCRIBED_BY (1)

→[Source]NVD

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-84292 (CVSS 7.5) — Ninja Signal Threat Intelligence | Ninja Signal