fix: upgrade @sveltejs/kit to 2.57.1 (CVE-2026-40073)#10637
fix: upgrade @sveltejs/kit to 2.57.1 (CVE-2026-40073)#10637orbisai0security wants to merge 1 commit intoTanStack:mainfrom
Conversation
Automated dependency upgrade by Orbis Security AI
📝 WalkthroughWalkthroughA new top-level ChangesDependency Addition
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Around line 107-109: The pnpm lockfile still resolves vulnerable
`@sveltejs/kit`@2.55.0; update all example project package.json entries that use
the specifier ^2.42.2 to require `@sveltejs/kit`@2.57.1 (or a range >=2.57.1),
bump or replace `@sveltejs/adapter-auto` to a version that depends on the newer
kit, then run pnpm install to regenerate pnpm-lock.yaml so all `@sveltejs/kit`
resolutions point to 2.57.1+ (alternatively add a pnpm overrides/resolutions
entry forcing `@sveltejs/kit`@2.57.1 and run pnpm install).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 03cc8224-594c-49f4-9c0b-7e3e9eff0314
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
package.json
| "dependencies": { | ||
| "@sveltejs/kit": "2.57.1" | ||
| } |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Checking resolved versions in pnpm-lock.yaml..."
rg -n '"@sveltejs/kit@|/@sveltejs/kit/|@sveltejs/adapter-node@|/@sveltejs/adapter-node/"' pnpm-lock.yaml
echo
echo "Checking for potentially vulnerable 2.55.x kit entries..."
rg -n '@sveltejs/kit@2\.55\.' pnpm-lock.yaml || trueRepository: TanStack/query
Length of output: 106
🏁 Script executed:
ls -la | grep -E "(pnpm-lock|package-lock|yarn\.lock|package\.json)"Repository: TanStack/query
Length of output: 192
🏁 Script executed:
head -120 package.json | tail -20Repository: TanStack/query
Length of output: 763
🏁 Script executed:
git ls-files | grep -E "(lock|package\.json)" | head -10Repository: TanStack/query
Length of output: 512
🏁 Script executed:
# Search more carefully in pnpm-lock.yaml for `@sveltejs/kit`
rg -i "sveltejs" pnpm-lock.yaml | head -20Repository: TanStack/query
Length of output: 3758
🏁 Script executed:
# Check the exact format of dependencies in pnpm-lock.yaml
grep -n "sveltejs" pnpm-lock.yaml | head -30Repository: TanStack/query
Length of output: 5115
🏁 Script executed:
# Get context around the 2.55.0 entries to see which packages depend on them
sed -n '1715,1725p' pnpm-lock.yamlRepository: TanStack/query
Length of output: 1123
🏁 Script executed:
# Check if `@sveltejs/adapter-auto` specifies a version that requires 2.55.0
sed -n '1717,1725p' pnpm-lock.yamlRepository: TanStack/query
Length of output: 1040
Vulnerable @sveltejs/kit@2.55.0 versions remain in pnpm-lock.yaml and must be regenerated.
The root package.json correctly specifies @sveltejs/kit@2.57.1, but pnpm-lock.yaml still resolves multiple instances of the vulnerable @sveltejs/kit@2.55.0 across example projects (lines 1720–1822 and beyond). These entries exist because example projects declare @sveltejs/kit with the specifier ^2.42.2 and @sveltejs/adapter-auto@6.1.1 depends on the older version. Run pnpm install to regenerate the lockfile and ensure all @sveltejs/kit resolutions are updated to 2.57.1 or later.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@package.json` around lines 107 - 109, The pnpm lockfile still resolves
vulnerable `@sveltejs/kit`@2.55.0; update all example project package.json entries
that use the specifier ^2.42.2 to require `@sveltejs/kit`@2.57.1 (or a range
>=2.57.1), bump or replace `@sveltejs/adapter-auto` to a version that depends on
the newer kit, then run pnpm install to regenerate pnpm-lock.yaml so all
`@sveltejs/kit` resolutions point to 2.57.1+ (alternatively add a pnpm
overrides/resolutions entry forcing `@sveltejs/kit`@2.57.1 and run pnpm install).
Summary
Upgrade @sveltejs/kit from 2.55.0 to 2.57.1 to fix CVE-2026-40073.
Vulnerability
CVE-2026-40073pnpm-lock.yamlDescription: @sveltejs/adapter-node has a BODY_SIZE_LIMIT bypass
Changes
package.jsonpnpm-lock.yamlVerification
Automated security fix by OrbisAI Security
Summary by CodeRabbit