{"id":"CVE-2026-102989","aliases":["CVE-2026-102989","GHSA-qx66-fv34-fjm8"],"related":[],"kind":"vulnerability","state":"published","title":"TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses","summary":"TanStack Router is a client-first, server-capable, fully type-safe router and full-stack framework for the web. From 1.143.12 until 1.169.39 for @tanstack/start-server-core, 1.168.60 for @tanstack/react-start, 1.168.57 for @tanstack/solid-start, and 1.168.56 for @tanstack/vue-start, an unauthenticated attacker can place non-public fields in a server-function request payload so that attacker-controlled middleware state reaches the error path and a response-shaped object is accepted as an HTTP response. A crafted server-function URL can therefore return attacker-controlled HTML from the application's origin; when a visitor opens the URL, the injected script can access same-origin data and issue requests with the visitor's authority. This issue is fixed in @tanstack/start-server-core 1.169.39, @tanstack/react-start 1.168.60, @tanstack/solid-start 1.168.57, and @tanstack/vue-start 1.168.56.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"TanStack Router is a client-first, server-capable, fully type-safe router and full-stack framework for the web. From 1.143.12 until 1.169.39 for @tanstack/start-server-core, 1.168.60 for @tanstack/react-start, 1.168.57 for @tanstack/solid-start, and 1.168.56 for @tanstack/vue-start, an unauthenticated attacker can place non-public fields in a server-function request payload so that attacker-controlled middleware state reaches the error path and a response-shaped object is accepted as an HTTP response. A crafted server-function URL can therefore return attacker-controlled HTML from the application's origin; when a visitor opens the URL, the injected script can access same-origin data and issue requests with the visitor's authority. This issue is fixed in @tanstack/start-server-core 1.169.39, @tanstack/react-start 1.168.60, @tanstack/solid-start 1.168.57, and @tanstack/vue-start 1.168.56.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nAn unauthenticated attacker can craft a URL to a server function in an affected TanStack Start app. If someone opens the link, the app can return attacker-controlled HTML from its own origin and run the attacker's JavaScript there. The script can access same-origin data available to that visitor and make requests with their authority.\n\n## Cause\n\nThe server-function transport can pass request payload fields into internal middleware state instead of limiting them to public input fields. A malformed payload can leave an attacker-controlled result in the error path. Response handling can then treat a response-shaped object as an HTTP response.\n\n## Affected versions\n\nPublished versions of `@tanstack/start-server-core`, `@tanstack/react-start`, `@tanstack/solid-start`, and `@tanstack/vue-start` from `1.143.12` up to, but not including, their respective patched versions are affected. The patched versions are `@tanstack/start-server-core@1.169.39`, `@tanstack/react-start@1.168.60`, `@tanstack/solid-start@1.168.57`, and `@tanstack/vue-start@1.168.56`.\n\n## Fix\n\nThe fix limits client-supplied server-function input to public fields and validates responses at the server boundary. Upgrade to the corresponding patched package version.\n\n## Temporary mitigations\n\nFor the configured server-function path, usually `/_serverFn/*`, an edge or WAF rule can consider blocking requests without the literal `x-tsr-serverFn: true` header and browser document navigations such as `Sec-Fetch-Mode: navigate` or `Accept: text/html`. A restrictive Content Security Policy on server-function responses can provide another browser-side restriction. These are mitigation suggestions, not a complete fix. The header is client-controlled and is not authentication. Test rules against legitimate GET and POST server functions and use a matching version-specific backport where possible.\n\n## Credits\n\nLovable helped us discover and report this issue. We thank them for their help.","format":"markdown","source":"ghsa"}],"published":"2026-10-13T16:13:13.105Z","modified":"2026-10-16T16:00:33.533Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< release-2026-09-30-1747","status":"affected"}],"vendor":"TanStack","product":"router","source":"cvelist"},{"ranges":[{"version":">= 1.143.12, < 1.168.60","status":"affected"}],"vendor":"@tanstack","product":"react-start","source":"cvelist"},{"ranges":[{"version":">= 1.143.12, < 1.168.57","status":"affected"}],"vendor":"@tanstack","product":"solid-start","source":"cvelist"},{"ranges":[{"version":">= 1.143.12, < 1.169.39","status":"affected"}],"vendor":"@tanstack","product":"start-server-core","source":"cvelist"},{"ranges":[{"version":">= 1.143.12, < 1.168.56","status":"affected"}],"vendor":"@tanstack","product":"vue-start","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.143.12","status":"affected","fixed":"1.169.39"}],"ecosystem":"npm","package":"@tanstack/start-server-core","purl":"pkg:npm/%40tanstack/start-server-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.143.12","status":"affected","fixed":"1.168.60"}],"ecosystem":"npm","package":"@tanstack/react-start","purl":"pkg:npm/%40tanstack/react-start","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.143.12","status":"affected","fixed":"1.168.57"}],"ecosystem":"npm","package":"@tanstack/solid-start","purl":"pkg:npm/%40tanstack/solid-start","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.143.12","status":"affected","fixed":"1.168.56"}],"ecosystem":"npm","package":"@tanstack/vue-start","purl":"pkg:npm/%40tanstack/vue-start","source":"ghsa"}],"references":[{"url":"https://github.com/TanStack/router/security/advisories/GHSA-qx66-fv34-fjm8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TanStack/router/pull/8573","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TanStack/router/commit/d521abd71c69f1ff010bb3def4d417cb5fa058cb","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TanStack/router/releases/tag/release-2026-09-30-1747","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102989","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/TanStack/router","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-14T15:19:40.392Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102989","url":"https://www.cve.org/CVERecord?id=CVE-2026-102989","licence":"CVE Terms of Use","modified":"2026-10-14T15:20:08.563Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qx66-fv34-fjm8","url":"https://github.com/advisories/GHSA-qx66-fv34-fjm8","licence":"CC-BY-4.0","modified":"2026-10-15T20:30:04.544Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102989","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102989","licence":"Public domain","modified":"2026-10-16T16:00:33.533Z"}],"updatedAt":"2026-11-25T22:59:43.851Z","epss":{"score":0.00544,"percentile":0.47069,"date":"2026-12-01T12:00:22.000Z"}}