npm
CVE-2026-84292
fast-uri vulnerable to authority injection via an unvalidated port in serialize
- Severity
- High 7.5
- Published
- 28 Sept 2026
- Last changed
- 28 Sept 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 2.4.6, 3.1.7, 4.1.4
- Exploit chance
- 0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Also known as
- GHSA-qw65-cvwx-89v3
- Sources
- OSV.dev and GitHub
Description
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.
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').
Affected software
| Software | Affected versions |
|---|---|
fast-urinpm · osv:npm:fast-uri |
|
About fast-uri
- Weekly downloads (npm)
- 227,816,128npm, 17 Nov 2026
Vulnerabilities in fast-uri
- In our list
- 9
- Published in the last 12 months
- 9
- Critical, last 12 months
- 0
- High, last 12 months
- 8
- Known exploited
- 0
- CVE-2026-86472fast-uri vulnerable to inconsistent host case normalization via percent-encoded octetsMedium 4.8 29 Sept 2026
- CVE-2026-75975fast-uri vulnerable to server-side request forgery via malformed IPv6 normalizationHigh 7.5 2 Sept 2026
- CVE-2026-76172fast-uri vulnerable to host confusion via percent-encoded scheme normalizationHigh 7.5 2 Sept 2026
- CVE-2026-18446fast-uri vulnerable to host confusion via backslash authority introducerHigh 7.5 3 Aug 2026
- CVE-2026-16221fast-uri vulnerable to host confusion via literal backslash authority delimiterHigh 7.5 21 Jul 2026
- CVE-2026-13676fast-uri vulnerable to host confusion via failed IDN canonicalizationHigh 7.5 21 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-84292
- GitHub Advisory Database https://github.com/advisories/GHSA-qw65-cvwx-89v3