Repository navigation
Bump @tanstack/react-start to 1.169.4 (CVE-2026-102989) - #98
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The production deploy of #97 was rejected by Vercel with
BLOCKED_PACKAGE:@tanstack/react-start@1.168.49carries a known XSS vulnerability (CVE-2026-102989 / GHSA-qx66-fv34-fjm8), fixed in 1.168.60. This fixes the package version rather than setting theDANGEROUSLY_DEPLOY_VULNERABLE_TANSTACK_START_XSSescape hatch.What changed
Dependency bump (
package.json,pnpm-lock.yaml)@tanstack/react-start@tanstack/react-router@tanstack/react-router-devtools@tanstack/router-cli@tanstack/react-devtools@tanstack/devtools-viteAll in the same majors; the lockfile resolves to a single copy of every
@tanstack/*package (router-core1.171.39,start-client-core1.170.39,start-server-core1.169.45,start-plugin-core1.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 inAGENTS.mdis updated to match. No validator schemas or handler bodies changed.Verification
Full local gate, matching CI:
pnpm install --frozen-lockfile— okpnpm lint— okpnpm check— okpnpm typecheck— ok (the 36inputValidatorTS2339 errors from the bump are gone)pnpm test— 16 files, 77 tests passedpnpm build— okpnpm bundle:check— ok (client js 1617 kB).output/server/index.mjs:/and/booksreturn 200,/api/itemswithout a token returns 401, nocreateSsrRpcin the server loggetSearchFacetsthrough 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