Skip to main content

CVE-2026-102989 — Vulnerability in @tanstack/start-server-core

CRITICAL

TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses

Published October 15, 2026Updated October 15, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.52%). Schedule for your next planned update.

Does your project use an affected @tanstack/start-server-core version?

Paste your package-lock.json to check it for CVE-2026-102989 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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.

Advisory Timeline

  • First published October 15, 2026 (42 days ago).
  • Last revised October 15, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @tanstack/start-server-core to 1.169.39 or later
npm install @tanstack/start-server-core@1.169.39
npm
Update @tanstack/solid-start to 1.168.57 or later
npm install @tanstack/solid-start@1.168.57
npm
Update @tanstack/vue-start to 1.168.56 or later
npm install @tanstack/vue-start@1.168.56
npm
Update @tanstack/react-start to 1.168.60 or later
npm install @tanstack/react-start@1.168.60

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: npm (4).

PackageFixed In
@tanstack/start-server-core npm · Affected: All versions1.169.39
@tanstack/solid-start npm · Affected: All versions1.168.57
@tanstack/vue-start npm · Affected: All versions1.168.56
@tanstack/react-start npm · Affected: All versions1.168.60

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-102989?
TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
How do I check if my project is affected by CVE-2026-102989?
CVE-2026-102989 affects @tanstack/start-server-core, @tanstack/solid-start and @tanstack/vue-start (and 1 more). It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-102989 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.3

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.52%
EPSS percentile: 37.2

This is a below-median EPSS score — only 37.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-qx66-fv34-fjm8

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json