@sveltejs/kit
3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed
2.70.4 is the newest release of 2.x.
In short
25 breaking5 new5 fixed1 internal
- Breaking
Remove top-level promise awaiting
- Breaking
Prevent use of dynamic env vars during prerendering, serve env vars dynamically
- Breaking
Remove deprecated
use:enhancecallback values - Breaking
Turn
errorandredirectinto commands - Breaking
The type for
dependsnow requires a:as part of the string - Breaking
Remove baseUrl fallback from generated tsconfig
- Breaking
Fail if route with +page and +server is marked prerenderable
- Breaking
Remove
resolvePathin favour ofresolveRoutefrom$app/paths
Security
13 advisories affect 2.0.0; 2.70.4 fixes the others
- High@sveltejs/adapter-node has a BODY_SIZE_LIMIT bypassGHSA-2crg-3p73-43xp · 10 Apr 2026Fixed in 2.57.1
- HighSending a GET or HEAD request with a body crashes SvelteKitGHSA-g5m6-hxpp-fc49 · 24 Jan 2024Fixed in 2.4.3
- ModerateSvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script executionGHSA-rqp5-r3wg-vg35 · 16 Nov 2026Fixed in 2.70.4
- ModerateSvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnamesGHSA-mw6w-2fmv-pvw3 · 13 Nov 2026Fixed in 2.70.4
- ModerateSvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept headerGHSA-29g2-3rmr-qm68 · 7 Aug 2026Fixed in 2.70.2
8 more
- ModerateSvelteKit: Prototype pollution in file input deletion path in remote-function formsGHSA-866w-xmhq-wj7x · 24 Jul 2026Fixed in 2.69.1
- ModerateSvelteKit: Big remote form function payloads can cause Node process to crashGHSA-wqjv-9729-c5q2 · 24 Jul 2026Fixed in 2.69.1
- Moderate@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-ServiceGHSA-3f6h-2hrp-w5wx · 10 Apr 2026Fixed in 2.57.1
- Moderate@sveltejs/kit vulnerable to Cross-site Scripting via tracked search_paramsGHSA-6q87-84jw-cjhp · 14 Apr 2025Fixed in 2.20.6
- LowSvelteKit: URL redirection to untrusted site via enhanced form submissionGHSA-pfhg-q3qv-9q6r · 23 Oct 2026No fix yet
- LowSvelteKit : XSS via untrusted cache-control header in prerendered pageGHSA-27mw-82g8-phjj · 23 Oct 2026No fix yet
- Low@sveltejs/kit vulnerable to XSS on dev mode 404 pageGHSA-rjjv-87mx-6x3h · 25 Nov 2024Fixed in 2.8.3
- Low@sveltejs/kit has unescaped error message included on error pageGHSA-mh2x-fcqh-fmqv · 25 Nov 2024Fixed in 2.8.3
Release note
Major Changes
- Breaking
Remove top-level promise awaiting
- Breaking
Prevent use of dynamic env vars during prerendering, serve env vars dynamically
- Breaking
Remove deprecated
use:enhancecallback values - Breaking
Turn
errorandredirectinto commands - Breaking
The type for
dependsnow requires a:as part of the string - Breaking
Remove baseUrl fallback from generated tsconfig
- Breaking
Fail if route with +page and +server is marked prerenderable
- Breaking
Remove
resolvePathin favour ofresolveRoutefrom$app/paths - Breaking
Drop support for Svelte 3
- Breaking
Require Vite 5.0.3+
- Breaking
Generate
__data.jsonfiles as sibling to.htmlfiles - Breaking
Fail if +page and +server have mismatched config
- Breaking
Error if form without multipart/form-data enctype contains a file input
- Breaking
Require paths pass to preloadCode to be prefixed with basepath
- Breaking
@sveltejs/vite-plugin-svelteis now a peer dependency and will need to be installed in each project using SvelteKit - Breaking
Stop re-exporting vitePreprocess
- Breaking
Require path option when setting/deleting/serializing cookies
- Breaking
Tighten up error handling
- Breaking
Remove state option from goto in favor of shallow routing
- Breaking
Disallow external navigation with
goto - Breaking
Upgrade to TypeScript 5. Default
moduleResolutiontobundlerin user projects to be permissive in consuming andNodeNextwhen runningpackageto be strict in distributing - Breaking
Undefined is no longer a valid value for paths.relative
- Breaking
Require Node 18.13 or newer
- Breaking
Fix path resolution
- Breaking
Remove
dangerZone.trackServerFetches
Minor Changes
Add untrack to load
Implement shallow routing
Provide SvelteKit html typings
Redact internal stack trace when reporting config errors
Allow for fine grained invalidation of search params
Patch Changes
Prerender optional parameters as empty when
entriescontains'*'Resolve route config correctly
Import Svelte types from svelte/compiler
Reset invalid resources after a successful invalidation
Adjust fail method and ActionFailure type
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.