{"schema":"threatline.record/2","record":{"id":"CVE-2026-84292","aliases":["GHSA-qw65-cvwx-89v3"],"summary":"fast-uri vulnerable to authority injection via an unvalidated port in serialize","details":"### 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')`.","categories":["Libraries & packages"],"product":"fast-uri","vendor":"fast-uri","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:24:40Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri"},"range":"< 2.4.6"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:24:40Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri"},"range":">= 3.0.0, < 3.1.7"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:24:40Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri"},"range":">= 4.0.0, < 4.1.4"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-84292","source_modified_at":"2026-09-03T13:16:25.237Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"fast-uri","vendor":"fast-uri","versions":[{"versionType":"semver","status":"affected","version":"0","lessThan":"2.4.6"},{"versionType":"semver","status":"unaffected","version":"2.4.6"},{"versionType":"semver","status":"affected","version":"3.0.0","lessThan":"3.1.7"},{"versionType":"semver","status":"unaffected","version":"3.1.7"},{"versionType":"semver","status":"affected","version":"4.0.0","lessThan":"4.1.4"},{"versionType":"semver","status":"unaffected","version":"4.1.4"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:45:03.859117836Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri","purl":"pkg:npm/fast-uri"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.4.6"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:45:03.859117836Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri","purl":"pkg:npm/fast-uri"},"ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.1.7"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:45:03.859117836Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri","purl":"pkg:npm/fast-uri"},"ranges":[{"events":[{"introduced":"4.0.0"},{"fixed":"4.1.4"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:24:40Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri"},"version":"2.4.6"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:24:40Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri"},"version":"3.1.7"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:24:40Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri"},"version":"4.1.4"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-84292","source_modified_at":"2026-09-03T13:16:25.237Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"fast-uri","ecosystem":null},"version":"2.4.6","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-84292","source_modified_at":"2026-09-03T13:16:25.237Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"fast-uri","ecosystem":null},"version":"3.1.7","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-84292","source_modified_at":"2026-09-03T13:16:25.237Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"fast-uri","ecosystem":null},"version":"4.1.4","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:45:03.859117836Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri","purl":"pkg:npm/fast-uri"},"version":"2.4.6"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:45:03.859117836Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri","purl":"pkg:npm/fast-uri"},"version":"3.1.7"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","source_modified_at":"2026-09-28T21:45:03.859117836Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"fast-uri","purl":"pkg:npm/fast-uri"},"version":"4.1.4"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00239,"percentile":0.14168,"score_date":"2026-10-23"},"published_at":"2026-09-02T20:09:51.415Z","modified_at":"2026-09-28T21:45:03.859117836Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-09-28T21:24:40Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-84292","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-09-03T13:16:25.237Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-qw65-cvwx-89v3","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-09-28T21:45:03.859117836Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-84292","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/fastify/fast-uri/security/advisories/GHSA-qw65-cvwx-89v3"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84292","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/commit/820e8478dd7da3d09f187bfaf35d50b71f67b8b4","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://cna.openjsf.org/security-advisories.html"},{"url":"https://github.com/fastify/fast-uri/releases/tag/v2.4.6","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/releases/tag/v3.1.7","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/fast-uri/releases/tag/v4.1.4","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-qw65-cvwx-89v3","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","assessed_at":"2026-09-03T13:16:05.344208Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-09-28T21:45:03.859117836Z","content_hash":"3d5c274b1f70e1c8fb280cd462af7b2d88c881907df03a62b31bbfe8bd1fe431"}}
