{"id":"CVE-2026-84292","aliases":["CVE-2026-84292","GHSA-qw65-cvwx-89v3"],"related":[],"kind":"vulnerability","state":"published","title":"fast-uri vulnerable to authority injection via an unvalidated port in serialize","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`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.\n\nThis 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.\n\n### Patches\n\nThis 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.\n\n### Workarounds\n\nIf 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')`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"fast-uri serializa el componente de puerto de una URI sin validarlo. Al recomponer la autoridad, los componentes userinfo y host se escapan, pero el puerto se concatena textualmente, por lo que un valor de puerto que no es una secuencia de dígitos puede inyectar delimitadores de autoridad, degradando el host previsto a userinfo y apuntando la autoridad a un host controlado por el atacante. Tanto fast-uri como la URL de Node leen el resultado como el host del atacante sin error, por lo que revalidar la URI construida no lo detecta. Esto afecta a las aplicaciones que construyen URIs a partir de partes y asignan datos no confiables al componente de puerto a través de las funciones serialize, normalize o equal en sus formas de objeto. El problema afecta a las versiones de fast-uri anteriores a la 2.4.6, desde la 3.0.0 anteriores a la 3.1.7, y desde la 4.0.0 anteriores a la 4.1.4. Se ha corregido en la 2.4.6, la 3.1.7 y la 4.1.4, donde recomposeAuthority rechaza cualquier puerto que no sea una secuencia de dígitos según la RFC 3986.","source":"nvd"}],"published":"2026-09-02T20:09:51.415Z","modified":"2026-10-06T22:10:00.247Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.4.6","status":"affected"},{"type":"semver","version":"2.4.6","status":"unaffected"},{"type":"semver","introduced":"3.0.0","fixed":"3.1.7","status":"affected"},{"type":"semver","version":"3.1.7","status":"unaffected"},{"type":"semver","introduced":"4.0.0","fixed":"4.1.4","status":"affected"},{"type":"semver","version":"4.1.4","status":"unaffected"}],"vendor":"fast-uri","product":"fast-uri","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.6"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.7"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.1.4"}],"ecosystem":"npm","package":"fast-uri","purl":"pkg:npm/fast-uri","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.4.6"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.7"},{"status":"affected","introduced":"4.0.0","fixed":"4.1.4"}],"vendor":"openjsf","product":"fast-uri","cpe":"cpe:2.3:a:openjsf:fast-uri:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-qw65-cvwx-89v3","tags":["mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84292","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/commit/820e8478dd7da3d09f187bfaf35d50b71f67b8b4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v2.4.6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fast-uri/releases/tag/v4.1.4","tags":["web"],"sources":["ghsa"]}],"credits":["YashvantHange","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-03T13:16:05.344Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-84292","url":"https://www.cve.org/CVERecord?id=CVE-2026-84292","licence":"CVE Terms of Use","modified":"2026-09-03T13:16:25.237Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qw65-cvwx-89v3","url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","licence":"CC-BY-4.0","modified":"2026-09-28T21:45:03.859Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-84292","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84292","licence":"Public domain","modified":"2026-10-06T22:10:00.247Z"}],"updatedAt":"2026-11-25T22:59:36.145Z","epss":{"score":0.00239,"percentile":0.1607,"date":"2026-12-01T12:00:22.000Z"}}