Vulnerabilities in pkg:npm/@tanstack/start-server-core

PACKAGE
Advisory Identifier: GHSA-qx66-fv34-fjm8
Advisory Summary

CVE-2026-102989 is a CRITICAL (CVSS 9.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting TanStack Router libraries in the npm ecosystem. The issue involves unauthenticated reflected xss in tanstack start server-function responses. Remediation is available by upgrading affected packages to version 1.168.56, 1.169.39, 1.168.60, 1.168.57.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@tanstack/start-server-core

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@tanstack/start-server-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qx66-fv34-fjm8 CVE-2026-102989 CRITICAL TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses
GHSA-g7cv-rxg3-hmpx CVE-2026-45321 CRITICAL Malware in @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
GHSA-9m65-766c-r333 - MODERATE TanStack Start - Server Core: Inbound server-function request deserialization could invoke a sibling client-referenced server function

CVE-2026-102989 at a Glance

CVE Identifier CVE-2026-102989
GHSA Identifier GHSA-qx66-fv34-fjm8
Severity CRITICAL
CVSS v3.1 Base Score 9.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product TanStack Router
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-102989

To remediate this vulnerability, upgrade all affected TanStack Router dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@tanstack/vue-start fixed: 1.168.56
npm install @tanstack/vue-start@1.168.56
@tanstack/start-server-core fixed: 1.169.39
npm install @tanstack/start-server-core@1.169.39
@tanstack/react-start fixed: 1.168.60
npm install @tanstack/react-start@1.168.60
@tanstack/solid-start fixed: 1.168.57
npm install @tanstack/solid-start@1.168.57
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @tanstack/vue-start

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-102989, inspect your project dependencies using npm:

npm ls @tanstack/vue-start

Analyze the terminal output to locate any version of TanStack Router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.168.56), your application is affected.

Note: The npm ls @tanstack/vue-start command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In TanStack Router, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Impact An 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. ## Cause The 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. ## Affected versions Published 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`. ## Fix The fix limits client-supplied server-function input to public fields and validates responses at the server boundary. Upgrade to the corresponding patched package version. ## Temporary mitigations For 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. ## Credits Lovable helped us discover and report this issue. We thank them for their help.

CVE-2026-102989 Affected TanStack Router Versions

4 component(s)
Fixed Versions:
1.168.561.169.391.168.601.168.57
Product / Package Ecosystem Affected Versions Fixed Version
@tanstack/vue-start
npm
≥ 1.143.12
< 1.168.56
1.168.56
@tanstack/start-server-core
npm
≥ 1.143.12
< 1.169.39
1.169.39
@tanstack/react-start
npm
≥ 1.143.12
< 1.168.60
1.168.60
@tanstack/solid-start
npm
≥ 1.143.12
< 1.168.57
1.168.57

References

Frequently Asked Questions

What is CVE-2026-102989?
CVE-2026-102989 is a security vulnerability in TanStack Router involving Unauthenticated reflected XSS in TanStack Start server-function responses under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which TanStack Router versions are affected?
Affected versions include releases prior to 1.168.56, 1.169.39, 1.168.60, 1.168.57 across affected packages: @tanstack/vue-start, @tanstack/start-server-core, @tanstack/react-start, @tanstack/solid-start.
What version fixes CVE-2026-102989?
Upgrading to 1.168.56, 1.169.39, 1.168.60, 1.168.57 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @tanstack/vue-start affected?
Yes, @tanstack/vue-start is affected in releases prior to 1.168.56. Upgrade your dependency to 1.168.56 or later.
Is @tanstack/start-server-core affected?
Yes, @tanstack/start-server-core is affected in releases prior to 1.169.39. Upgrade your dependency to 1.169.39 or later.
What is the CVSS score of CVE-2026-102989?
CVE-2026-102989 has a CVSS v3.1 base score of 9.3 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-102989?
CVE-2026-102989 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2026-102989?
Run the dependency tree command: 'npm ls @tanstack/vue-start'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qx66-fv34-fjm8",
  "modified" : "2026-10-15T20:22:21Z",
  "published" : "2026-10-15T20:22:20Z",
  "aliases" : [ "CVE-2026-102989" ],
  "summary" : "TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses",
  "details" : "## 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@tanstack/start-server-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.143.12"
      }, {
        "fixed" : "1.169.39"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@tanstack/react-start"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.143.12"
      }, {
        "fixed" : "1.168.60"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@tanstack/solid-start"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.143.12"
      }, {
        "fixed" : "1.168.57"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@tanstack/vue-start"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.143.12"
      }, {
        "fixed" : "1.168.56"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TanStack/router/security/advisories/GHSA-qx66-fv34-fjm8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-102989"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TanStack/router/pull/8573"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TanStack/router/commit/d521abd71c69f1ff010bb3def4d417cb5fa058cb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TanStack/router"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TanStack/router/releases/tag/release-2026-09-30-1747"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-15T20:22:20Z",
    "nvd_published_at" : "2026-10-13T17:17:14Z"
  }
}