Skip to content

Bump @tanstack/react-start to 1.169.4 (CVE-2026-102989) - #98

Merged
ryanleichty merged 2 commits into
mainfrom
cursor/bump-tanstack-start-cve-8e4f
Oct 27, 2026
Merged

ryanleichty merged 2 commits into
mainfrom
cursor/bump-tanstack-start-cve-8e4f

Conversation

@ryanleichty

Copy link
Copy Markdown
Owner

Why

The production deploy of #97 was rejected by Vercel with BLOCKED_PACKAGE: @tanstack/react-start@1.168.49 carries a known XSS vulnerability (CVE-2026-102989 / GHSA-qx66-fv34-fjm8), fixed in 1.168.60. This fixes the package version rather than setting the DANGEROUSLY_DEPLOY_VULNERABLE_TANSTACK_START_XSS escape hatch.

What changed

Dependency bump (package.json, pnpm-lock.yaml)

Package Before After
@tanstack/react-start ^1.168.49 → 1.168.49 ^1.169.4 → 1.169.4
@tanstack/react-router ^1.170.32 → 1.170.32 ^1.170.46 → 1.170.46 (what react-start 1.169.4 pins)
@tanstack/react-router-devtools ^1.167.1 → 1.167.1 ^1.167.2 → 1.167.2
@tanstack/router-cli ^1.167.33 → 1.167.33 ^1.167.46 → 1.167.46 (router-generator now matches)
@tanstack/react-devtools ^0.10.12 → 0.10.12 ^0.10.13 → 0.10.13
@tanstack/devtools-vite ^0.8.5 unchanged

All in the same majors; the lockfile resolves to a single copy of every @tanstack/* package (router-core 1.171.39, start-client-core 1.170.39, start-server-core 1.169.45, start-plugin-core 1.171.55). The only other lockfile movement is transitive deps of these packages (seroval 1.6→1.7, srvx, cac, fetchdts; yargs/h3 subtrees dropped).

Required compatibility fix (src/server/*.ts, AGENTS.md)

react-start 1.169 removes the deprecated createServerFn().inputValidator() alias (TanStack/router#8694); .validator() is now the only form and the old name throws at runtime (inputValidator is not a function). All 36 call sites across 10 server modules are renamed, and the convention note in AGENTS.md is updated to match. No validator schemas or handler bodies changed.

Verification

Full local gate, matching CI:

  • pnpm install --frozen-lockfile — ok
  • pnpm lint — ok
  • pnpm check — ok
  • pnpm typecheck — ok (the 36 inputValidator TS2339 errors from the bump are gone)
  • pnpm test — 16 files, 77 tests passed
  • pnpm build — ok
  • pnpm bundle:check — ok (client js 1617 kB)
  • SSR smoke test on .output/server/index.mjs: / and /books return 200, /api/items without a token returns 401, no createSsrRpc in the server log
  • Called getSearchFacets through its /_serverFn/<id> RPC endpoint on the production build: a valid query returns facets (200), a >100-char query is rejected by the zod validator — confirms the renamed .validator() runs end to end
Open in Web Open in Cursor 

cursoragent and others added 2 commits October 27, 2026 20:21
Vercel blocked the production deploy because @tanstack/react-start@1.168.49
carries a known XSS vulnerability (GHSA-qx66-fv34-fjm8), fixed in 1.168.60.
Move to the latest release and align the sibling router, router-cli and
devtools packages to the versions it pins so the lockfile resolves to a
single copy of each.

Co-authored-by: Ryan Leichty <ryanleichty@users.noreply.github.com>
@tanstack/react-start 1.169 removes the deprecated inputValidator alias
from createServerFn (TanStack/router#8694); validator() is now the only
way to declare one, and calling the old name throws at runtime. Rename
every call site and the convention note in AGENTS.md to match.

Co-authored-by: Ryan Leichty <ryanleichty@users.noreply.github.com>
@ryanleichty
ryanleichty merged commit dab578d into main Oct 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants